Don't let applications add Connection header to request.
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index b4bd531..644782a 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -2308,7 +2308,10 @@
/* Try to get index into standard header array */
index = HTTP_GetStdHeaderIndex(field);
- if (index >= 0)
+ /* Don't let applications add Connection header to request */
+ if ((index == HTTP_QUERY_CONNECTION) && (dwModifier & HTTP_ADDHDR_FLAG_REQ))
+ return TRUE;
+ else if (index >= 0)
{
lphttpHdr = &lpwhr->StdHeaders[index];
}