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

This commit is contained in:
Vincent Povirk 2008-08-14 13:22:58 -05:00 committed by Alexandre Julliard
parent 5a3c3b6a12
commit 17c0c0a54b
1 changed files with 3 additions and 3 deletions

View File

@ -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 /* 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 */ * the connection is keep-alive by default */
if (!HTTP_HttpQueryInfoW(lpwhr, HTTP_QUERY_VERSION, szVersion, if (HTTP_HttpQueryInfoW(lpwhr, HTTP_QUERY_VERSION, szVersion,
&dwBufferSize, NULL) || &dwBufferSize, NULL) &&
strcmpiW(szVersion, g_szHttp1_1)) !strcmpiW(szVersion, g_szHttp1_1))
{ {
keepalive = TRUE; keepalive = TRUE;
} }