mirror of
https://github.com/curl/curl.git
synced 2026-07-23 17:37:17 +03:00
http: make sure a blank header overrides accept_decoding
Reported-by: rcanavan Assisted-by: Isaac Boukris Closes #785
This commit is contained in:
parent
acc2aeb407
commit
96eb9a862b
1 changed files with 4 additions and 0 deletions
|
|
@ -1917,6 +1917,10 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
|
|||
if(!conn->allocptr.accept_encoding)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
else {
|
||||
Curl_safefree(conn->allocptr.accept_encoding);
|
||||
conn->allocptr.accept_encoding = NULL;
|
||||
}
|
||||
|
||||
#ifdef HAVE_LIBZ
|
||||
/* we only consider transfer-encoding magic if libz support is built-in */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue