Commit 0e74f851 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

Don't let applications add Connection header to request.

parent c27db9b0
......@@ -2308,7 +2308,10 @@ BOOL HTTP_ProcessHeader(LPWININETHTTPREQW lpwhr, LPCWSTR field, LPCWSTR value, D
/* 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];
}
......
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