From 3fc27f67f3c02c5e203d8aec2f7867f65aa0f7f3 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Thu, 30 Apr 2009 09:15:11 +0200 Subject: [PATCH] wininet: Replace any existing content length header in HttpSendRequest. --- dlls/wininet/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index ac0b88f735..9b746f5021 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)