aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorDai Sato <satodai@w3m.jp>2006-12-10 10:49:23 +0000
committerDai Sato <satodai@w3m.jp>2006-12-10 10:49:23 +0000
commitdd02a73fcf0ebfd09989ac04cde013ae4ff2cce6 (patch)
tree3c3b6588273a6e10a635861dd4f84085f1b4a9d3 /file.c
parentmailcap.c (acceptableMimeTypes): change default accept: line (diff)
downloadw3m-dd02a73fcf0ebfd09989ac04cde013ae4ff2cce6.tar.gz
w3m-dd02a73fcf0ebfd09989ac04cde013ae4ff2cce6.zip
add LiveHTTPHeaders-like option: -reqlog.
Diffstat (limited to '')
-rw-r--r--file.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/file.c b/file.c
index d6d415d..883ee09 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.246 2006/06/12 11:51:59 inu Exp $ */
+/* $Id: file.c,v 1.247 2006/12/10 10:49:23 inu Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -614,14 +614,12 @@ readHeader(URLFile *uf, Buffer *newBuf, int thru, ParsedURL *pu)
if (uf->scheme == SCM_NEWS && tmp->ptr[0] == '.')
Strshrinkfirst(tmp, 1);
#endif
-#ifdef HTTP_DEBUG
- {
+ if(w3m_reqlog){
FILE *ff;
- ff = fopen("zzrequest", "a");
+ ff = fopen(w3m_reqlog, "a");
Strfputs(tmp, ff);
fclose(ff);
}
-#endif /* HTTP_DEBUG */
if (src)
Strfputs(tmp, src);
cleanup_line(tmp, HEADER_MODE);