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

This commit is contained in:
Hans Leidekker 2008-03-30 19:16:34 +01:00 committed by Alexandre Julliard
parent c7f93666c3
commit 454fae8432
1 changed files with 4 additions and 3 deletions

View File

@ -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);
} }