From 6a2579bb264742a07cdbbd52c21cb6d74324ddef Mon Sep 17 00:00:00 2001 From: Ito Hiroyuki Date: Sun, 18 Jul 2010 14:10:09 +0000 Subject: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=242599#21 * 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(). --- backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend.c') diff --git a/backend.c b/backend.c index 101e67e..c418095 100644 --- a/backend.c +++ b/backend.c @@ -1,4 +1,4 @@ -/* $Id: backend.c,v 1.13 2003/09/22 21:02:16 ukai Exp $ */ +/* $Id: backend.c,v 1.14 2010/07/18 14:10:09 htrb Exp $ */ #include #include #include @@ -95,7 +95,7 @@ internal_get(char *url, int flag, FormList *request) buf = loadGeneralFile(url, NULL, NO_REFERER, 0, request); do_download = FALSE; if (buf != NULL && buf != NO_BUFFER) { - if (!strcasecmp(buf->type, "text/html") && backend_halfdump_buf) { + if (is_html_type(buf->type) && backend_halfdump_buf) { TextLineListItem *p; Str first, last; int len = 0; -- cgit v1.2.3