wininet: Use Keep-Alive for HTTP requests if specified by the flags passed into HttpOpenRequest.

Robert Shearman rob at codeweavers.com
Sun Jan 7 06:53:29 CST 2007


---
  dlls/wininet/http.c |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)
-------------- next part --------------
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 438a284..b1ab187 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -2301,7 +2301,8 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWINI
                         HTTP_ADDREQ_FLAG_ADD | HTTP_ADDHDR_FLAG_REPLACE);
         }
 
-        HTTP_ProcessHeader(lpwhr, szConnection, szClose,
+        HTTP_ProcessHeader(lpwhr, szConnection,
+                           lpwhr->hdr.dwFlags & INTERNET_FLAG_KEEP_CONNECTION ? szKeepAlive : szClose,
                            HTTP_ADDHDR_FLAG_REQ | HTTP_ADDHDR_FLAG_REPLACE);
 
         /* if there's a proxy username and password, add it to the headers */


More information about the wine-patches mailing list