From 17c0c0a54b17c8bdd5d2a40d27b9bd9f461b666d Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Thu, 14 Aug 2008 13:22:58 -0500 Subject: [PATCH] wininet: Default to keep-alive when the server is HTTP/1.1, not when it isn't. --- dlls/wininet/http.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index ba82a84b46a..4630f3bac9d 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -4061,9 +4061,9 @@ BOOL HTTP_FinishedReading(LPWININETHTTPREQW lpwhr) /* as per RFC 2068, S8.1.2.1, if the client is HTTP/1.1 then assume that * the connection is keep-alive by default */ - if (!HTTP_HttpQueryInfoW(lpwhr, HTTP_QUERY_VERSION, szVersion, - &dwBufferSize, NULL) || - strcmpiW(szVersion, g_szHttp1_1)) + if (HTTP_HttpQueryInfoW(lpwhr, HTTP_QUERY_VERSION, szVersion, + &dwBufferSize, NULL) && + !strcmpiW(szVersion, g_szHttp1_1)) { keepalive = TRUE; }