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

This commit is contained in:
Rob Shearman 2007-01-07 12:53:29 +00:00 committed by Alexandre Julliard
parent a9c2cfa8d9
commit 47a8b86b53
1 changed files with 2 additions and 1 deletions

View File

@ -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 */