Commit 224af0d0 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

wininet: Fix variables values after redirection in HTTP_HttpSendRequestW.

Moved dwContentLength reset after HTTP_DrainContent (this function disconnects when dwContentLength is set to ~0u).
parent ee5ee5c5
......@@ -3462,6 +3462,10 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *lpwhr, LPCWSTR lpszHeaders,
* for all the data */
HTTP_DrainContent(lpwhr);
lpwhr->dwContentRead = 0;
if(redirected) {
lpwhr->dwContentLength = ~0u;
lpwhr->dwBytesToWrite = 0;
}
if (TRACE_ON(wininet))
{
......
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