wininet: Delete Content-Encoding header when uncompressing data.

This commit is contained in:
Piotr Caban 2013-04-30 16:59:49 +02:00 committed by Alexandre Julliard
parent 259ffa2a1a
commit 7883976722
1 changed files with 3 additions and 1 deletions

View File

@ -2822,8 +2822,10 @@ static DWORD set_content_length(http_request_t *request)
static const WCHAR gzipW[] = {'g','z','i','p',0}; static const WCHAR gzipW[] = {'g','z','i','p',0};
encoding_idx = HTTP_GetCustomHeaderIndex(request, szContent_Encoding, 0, FALSE); 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 init_gzip_stream(request);
}
} }
return ERROR_SUCCESS; return ERROR_SUCCESS;