From 47a8b86b5332a988d5f32b99ea6a84b17061a27a Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Sun, 7 Jan 2007 12:53:29 +0000 Subject: [PATCH] wininet: Use Keep-Alive for HTTP requests if specified by the flags passed into HttpOpenRequest. --- dlls/wininet/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index cb8b8441191..cdf2bffa9be 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -2302,7 +2302,8 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders, 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 */