[PATCH] wininet: default to keep-alive when the server is HTTP/1.1, not when it isn't

Vincent Povirk vincent at codeweavers.com
Thu Aug 14 13:22:58 CDT 2008


---
 dlls/wininet/http.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index ba82a84..4630f3b 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;
     }
-- 
1.5.4.3


--=-NPKl4JOxRSyP2X5JPJid--




More information about the wine-patches mailing list