Commit a9c2cfa8 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

wininet: Fix the handling of Accept types passed into HttpOpenRequest

by properly coalescing all the types into the Accept header value, rather than just adding the first.
parent 7e8ef764
...@@ -1113,7 +1113,8 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(LPWININETHTTPSESSIONW lpwhs, ...@@ -1113,7 +1113,8 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(LPWININETHTTPSESSIONW lpwhs,
{ {
int i; int i;
for(i=0;lpszAcceptTypes[i]!=NULL;i++) for(i=0;lpszAcceptTypes[i]!=NULL;i++)
HTTP_ProcessHeader(lpwhr, HTTP_ACCEPT, lpszAcceptTypes[i], HTTP_ADDHDR_FLAG_COALESCE_WITH_COMMA|HTTP_ADDHDR_FLAG_REQ|HTTP_ADDHDR_FLAG_ADD_IF_NEW); HTTP_ProcessHeader(lpwhr, HTTP_ACCEPT, lpszAcceptTypes[i],
HTTP_ADDHDR_FLAG_COALESCE_WITH_COMMA|HTTP_ADDHDR_FLAG_REQ|(i == 0 ? HTTP_ADDHDR_FLAG_REPLACE : 0));
} }
if (NULL == lpszVerb) if (NULL == lpszVerb)
......
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