Commit 3fc27f67 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wininet: Replace any existing content length header in HttpSendRequest.

parent 285eeea7
...@@ -3277,7 +3277,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders, ...@@ -3277,7 +3277,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
if (dwContentLength || strcmpW(lpwhr->lpszVerb, szGET)) if (dwContentLength || strcmpW(lpwhr->lpszVerb, szGET))
{ {
sprintfW(contentLengthStr, szContentLength, dwContentLength); 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; lpwhr->dwBytesToWrite = dwContentLength;
} }
if (lpwhr->lpHttpSession->lpAppInfo->lpszAgent) if (lpwhr->lpHttpSession->lpAppInfo->lpszAgent)
......
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