commit fc06b4747d5b84fa2588484cdef646668dbc313e
parent 12ce4a72f80d4bf2974e1f7ed0baf4728cc6c17b
Author: ukai <ukai>
Date: Fri, 29 Aug 2003 14:49:46 +0000
[w3m-dev 03957] Location: from local-CGI
* file.c (loadGeneralFile): don't parse header for local file
redirected by Location: from local-CGI
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat:
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,9 @@
+2003-08-29 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
+
+ * [w3m-dev 03957] Location: from local-CGI
+ * file.c (loadGeneralFile): don't parse header for local file
+ redirected by Location: from local-CGI
+
2003-08-12 TSUCHIYA Masatoshi <tsuchiya@pine.kuee.kyoto-u.ac.jp>
* [w3m-dev 03950] rel attribute of anchor tag
diff --git a/file.c b/file.c
@@ -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;