Commit 454fae84 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wininet: Don't close proxy connections when keep-alive is specified.

parent c7f93666
...@@ -3971,9 +3971,10 @@ BOOL HTTP_FinishedReading(LPWININETHTTPREQW lpwhr) ...@@ -3971,9 +3971,10 @@ BOOL HTTP_FinishedReading(LPWININETHTTPREQW lpwhr)
{ {
WCHAR szConnectionResponse[20]; WCHAR szConnectionResponse[20];
dwBufferSize = sizeof(szConnectionResponse); dwBufferSize = sizeof(szConnectionResponse);
if (!HTTP_HttpQueryInfoW(lpwhr, HTTP_QUERY_CONNECTION, szConnectionResponse, if ((!HTTP_HttpQueryInfoW(lpwhr, HTTP_QUERY_CONNECTION, szConnectionResponse, &dwBufferSize, NULL) ||
&dwBufferSize, NULL) || strcmpiW(szConnectionResponse, szKeepAlive)) &&
strcmpiW(szConnectionResponse, szKeepAlive)) (!HTTP_HttpQueryInfoW(lpwhr, HTTP_QUERY_PROXY_CONNECTION, szConnectionResponse, &dwBufferSize, NULL) ||
strcmpiW(szConnectionResponse, szKeepAlive)))
{ {
HTTPREQ_CloseConnection(&lpwhr->hdr); HTTPREQ_CloseConnection(&lpwhr->hdr);
} }
......
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