Hans Leidekker : wininet: Include the Proxy-Connection header in the keep-alive check.

Alexandre Julliard julliard at winehq.org
Mon Apr 22 14:29:18 CDT 2013


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Mon Apr 22 11:03:22 2013 +0200

wininet: Include the Proxy-Connection header in the keep-alive check.

---

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

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index aa3e461..9f01d0c 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -4607,8 +4607,9 @@ static void http_process_keep_alive(http_request_t *req)
 {
     int index;
 
-    index = HTTP_GetCustomHeaderIndex(req, szConnection, 0, FALSE);
-    if(index != -1)
+    if ((index = HTTP_GetCustomHeaderIndex(req, szConnection, 0, FALSE)) != -1)
+        req->netconn->keep_alive = !strcmpiW(req->custHeaders[index].lpszValue, szKeepAlive);
+    else if ((index = HTTP_GetCustomHeaderIndex(req, szProxy_Connection, 0, FALSE)) != -1)
         req->netconn->keep_alive = !strcmpiW(req->custHeaders[index].lpszValue, szKeepAlive);
     else
         req->netconn->keep_alive = !strcmpiW(req->version, g_szHttp1_1);




More information about the wine-cvs mailing list