Commit 78839767 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

wininet: Delete Content-Encoding header when uncompressing data.

parent 259ffa2a
......@@ -2822,8 +2822,10 @@ static DWORD set_content_length(http_request_t *request)
static const WCHAR gzipW[] = {'g','z','i','p',0};
encoding_idx = HTTP_GetCustomHeaderIndex(request, szContent_Encoding, 0, FALSE);
if(encoding_idx != -1 && !strcmpiW(request->custHeaders[encoding_idx].lpszValue, gzipW))
if(encoding_idx != -1 && !strcmpiW(request->custHeaders[encoding_idx].lpszValue, gzipW)) {
HTTP_DeleteCustomHeader(request, encoding_idx);
return init_gzip_stream(request);
}
}
return ERROR_SUCCESS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment