Hans Leidekker : wininet: Replace any existing content length header in HttpSendRequest.

Alexandre Julliard julliard at winehq.org
Thu Apr 30 11:01:11 CDT 2009


Module: wine
Branch: master
Commit: 3fc27f67f3c02c5e203d8aec2f7867f65aa0f7f3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3fc27f67f3c02c5e203d8aec2f7867f65aa0f7f3

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Thu Apr 30 09:15:11 2009 +0200

wininet: Replace any existing content length header in HttpSendRequest.

---

 dlls/wininet/http.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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-cvs mailing list