* file.c
(is_html_type): added.
(examineFile, loadGeneralFile, _saveBuffer)
(openGeneralPagerBuffer, reloadBuffer): use is_html_type() instead of strcasecmp().
(loadGeneralFile): set f.guess_tupe
* display.c
(displayBuffer): use is_html_type() instead of strcasecmp().
* buffer.c
(reshapeBuffer): use is_html_type() instead of strcasecmp().
* backend.c
(internal_get): use is_html_type() instead of strcasecmp().
This commit is contained in:
Ito Hiroyuki
2010-07-18 14:10:09 +00:00
parent c646d4e678
commit 6a2579bb26
8 changed files with 52 additions and 25 deletions

3
url.c
View File

@@ -1,4 +1,4 @@
/* $Id: url.c,v 1.95 2007/05/23 15:06:06 inu Exp $ */
/* $Id: url.c,v 1.96 2010/07/18 14:10:09 htrb Exp $ */
#include "fm.h"
#ifndef __MINGW32_VERSION
#include <sys/types.h>
@@ -101,6 +101,7 @@ static struct table2 DefaultGuess[] = {
{"html", "text/html"},
{"htm", "text/html"},
{"shtml", "text/html"},
{"xhtml", "application/xhtml+xml"},
{"gif", "image/gif"},
{"jpeg", "image/jpeg"},
{"jpg", "image/jpeg"},