diff options
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.225 2003/07/07 15:39:43 ukai Exp $ */ +/* $Id: file.c,v 1.226 2003/08/29 14:49:46 ukai Exp $ */ #include "fm.h" #include <sys/types.h> #include "myctype.h" @@ -1848,6 +1848,7 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer, t = f.guess_type; } else if (searchHeader) { + searchHeader = SearchHeader = FALSE; if (t_buf == NULL) t_buf = newBuffer(INIT_BUFFER_WIDTH); readHeader(&f, t_buf, searchHeader_through, &pu); @@ -1868,7 +1869,6 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer, t = checkContentType(t_buf); if (t == NULL) t = "text/plain"; - searchHeader = SearchHeader = FALSE; } else if (DefaultType) { t = DefaultType; |