Commit 17c0c0a5 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

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

parent 5a3c3b6a
......@@ -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
* the connection is keep-alive by default */
if (!HTTP_HttpQueryInfoW(lpwhr, HTTP_QUERY_VERSION, szVersion,
&dwBufferSize, NULL) ||
strcmpiW(szVersion, g_szHttp1_1))
if (HTTP_HttpQueryInfoW(lpwhr, HTTP_QUERY_VERSION, szVersion,
&dwBufferSize, NULL) &&
!strcmpiW(szVersion, g_szHttp1_1))
{
keepalive = TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment