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.
Robert Shearman
rob at codeweavers.com
Sun Jan 7 06:53:50 CST 2007
---
dlls/wininet/http.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
-------------- next part --------------
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 920cf50..cdf2bff 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -1113,7 +1113,8 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(L
{
int 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)
More information about the wine-patches
mailing list