diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-05-14 22:12:07 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-05-14 22:12:07 +0200 |
commit | 7764795c06a4eae99c9cded5b121946d9ecec84b (patch) | |
tree | 936e0caa2b8d04e5081849037f3bc9ea5c462b67 /lib | |
parent | d6706294e0bac0a0209e6bd61032848aae3d2d63 (diff) |
follow redirect: ignore response-body on redirect even if compressed
Sebastian V reported bug #3000056 identifying a problem with
redirect following. It showed that when curl followed redirects
it didn't properly ignore the response body of the 30X response
if that response was using compressed Content-Encoding!
(http://curl.haxx.se/bug/view.cgi?id=3000056)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/content_encoding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/content_encoding.c b/lib/content_encoding.c index a44aad7d0..f8c9234d9 100644 --- a/lib/content_encoding.c +++ b/lib/content_encoding.c @@ -103,7 +103,7 @@ inflate_stream(struct connectdata *conn, status = inflate(z, Z_SYNC_FLUSH); if(status == Z_OK || status == Z_STREAM_END) { allow_restart = 0; - if(DSIZ - z->avail_out) { + if((DSIZ - z->avail_out) && (!k->ignorebody)) { result = Curl_client_write(conn, CLIENTWRITE_BODY, decomp, DSIZ - z->avail_out); /* if !CURLE_OK, clean up, return */ |