diff options
author | Dai Sato <satodai@w3m.jp> | 2006-12-10 10:49:23 +0000 |
---|---|---|
committer | Dai Sato <satodai@w3m.jp> | 2006-12-10 10:49:23 +0000 |
commit | dd02a73fcf0ebfd09989ac04cde013ae4ff2cce6 (patch) | |
tree | 3c3b6588273a6e10a635861dd4f84085f1b4a9d3 /file.c | |
parent | mailcap.c (acceptableMimeTypes): change default accept: line (diff) | |
download | w3m-dd02a73fcf0ebfd09989ac04cde013ae4ff2cce6.tar.gz w3m-dd02a73fcf0ebfd09989ac04cde013ae4ff2cce6.zip |
add LiveHTTPHeaders-like option: -reqlog.
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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); |