Shmulik Regev fixed an issue with multi-pass authentication and compressed

content when libcurl didn't honor the internal ignorebody flag.
This commit is contained in:
Daniel Stenberg 2006-02-19 23:16:48 +00:00
parent 10beb36b1c
commit 29e446e508
3 changed files with 10 additions and 3 deletions

View file

@ -1158,12 +1158,14 @@ CURLcode Curl_readwrite(struct connectdata *conn,
case DEFLATE:
/* Assume CLIENTWRITE_BODY; headers are not encoded. */
result = Curl_unencode_deflate_write(data, k, nread);
if(!k->ignorebody)
result = Curl_unencode_deflate_write(data, k, nread);
break;
case GZIP:
/* Assume CLIENTWRITE_BODY; headers are not encoded. */
result = Curl_unencode_gzip_write(data, k, nread);
if(!k->ignorebody)
result = Curl_unencode_gzip_write(data, k, nread);
break;
case COMPRESS: