Vincent Povirk : wininet: Default to keep-alive when the server is HTTP/1.1 , not when it isn't.

Alexandre Julliard julliard at winehq.org
Tue Aug 19 08:46:52 CDT 2008


Module: wine
Branch: master
Commit: 17c0c0a54b17c8bdd5d2a40d27b9bd9f461b666d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=17c0c0a54b17c8bdd5d2a40d27b9bd9f461b666d

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Thu Aug 14 13:22:58 2008 -0500

wininet: Default to keep-alive when the server is HTTP/1.1, not when it isn't.

---

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




More information about the wine-cvs mailing list