From 454fae84321f46d2c5b7df7f763d2855fc304948 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Sun, 30 Mar 2008 19:16:34 +0100 Subject: [PATCH] wininet: Don't close proxy connections when keep-alive is specified. --- dlls/wininet/http.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 3980e9a1f22..3f83d6d6712 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -3971,9 +3971,10 @@ BOOL HTTP_FinishedReading(LPWININETHTTPREQW lpwhr) { WCHAR szConnectionResponse[20]; dwBufferSize = sizeof(szConnectionResponse); - if (!HTTP_HttpQueryInfoW(lpwhr, HTTP_QUERY_CONNECTION, szConnectionResponse, - &dwBufferSize, NULL) || - strcmpiW(szConnectionResponse, szKeepAlive)) + if ((!HTTP_HttpQueryInfoW(lpwhr, HTTP_QUERY_CONNECTION, szConnectionResponse, &dwBufferSize, NULL) || + strcmpiW(szConnectionResponse, szKeepAlive)) && + (!HTTP_HttpQueryInfoW(lpwhr, HTTP_QUERY_PROXY_CONNECTION, szConnectionResponse, &dwBufferSize, NULL) || + strcmpiW(szConnectionResponse, szKeepAlive))) { HTTPREQ_CloseConnection(&lpwhr->hdr); }