diff options
Diffstat (limited to 'WWW/Library/Implementation/HTTP.c')
-rw-r--r-- | WWW/Library/Implementation/HTTP.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/WWW/Library/Implementation/HTTP.c b/WWW/Library/Implementation/HTTP.c index 3562801e..7dcd0d9f 100644 --- a/WWW/Library/Implementation/HTTP.c +++ b/WWW/Library/Implementation/HTTP.c @@ -685,9 +685,12 @@ use_tunnel: * adding the base URL but is simpler than augmenting the dump's * presentation logic -TD */ - if (!LYPrependBaseToSource) + if (LYPrependBaseToSource && dump_output_immediately) { + CTRACE((tfp, "omit Accept-Encoding to work-around interaction with -source\n")); + } else { HTSprintf(&command, "Accept-Encoding: %s, %s%c%c", "gzip", "compress", CR, LF); + } if (language && *language) { HTSprintf(&command, "Accept-Language: %s%c%c", language, CR, LF); @@ -876,7 +879,7 @@ use_tunnel: ** document being proxied. */ if (!strncmp(docname, "http", 4)) { - cookie = LYCookie(host2, path2, port2, secure); + cookie = LYAddCookieHeader(host2, path2, port2, secure); } FREE(host2); FREE(path2); @@ -888,7 +891,7 @@ use_tunnel: /* ** Add cookie for a non-proxied request. - FM */ - cookie = LYCookie(hostname, abspath, portnumber, secure); + cookie = LYAddCookieHeader(hostname, abspath, portnumber, secure); auth_proxy = NO; } /* |