[2/2] wininet: Replace any existing content length header in HttpSendRequest.
Hans Leidekker
hans at codeweavers.com
Thu Apr 30 02:15:11 CDT 2009
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index ac0b88f..9b746f5 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -3277,7 +3277,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
if (dwContentLength || strcmpW(lpwhr->lpszVerb, szGET))
{
sprintfW(contentLengthStr, szContentLength, dwContentLength);
- HTTP_HttpAddRequestHeadersW(lpwhr, contentLengthStr, -1L, HTTP_ADDREQ_FLAG_ADD_IF_NEW);
+ HTTP_HttpAddRequestHeadersW(lpwhr, contentLengthStr, -1L, HTTP_ADDREQ_FLAG_REPLACE);
lpwhr->dwBytesToWrite = dwContentLength;
}
if (lpwhr->lpHttpSession->lpAppInfo->lpszAgent)
More information about the wine-patches
mailing list