wininet: Don't close proxy connections when keep-alive is specified.
This commit is contained in:
parent
c7f93666c3
commit
454fae8432
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue