wininet: Fix variables values after redirection in HTTP_HttpSendRequestW.
Moved dwContentLength reset after HTTP_DrainContent (this function disconnects when dwContentLength is set to ~0u).
This commit is contained in:
parent
ee5ee5c538
commit
224af0d0e7
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue