winhttp: Reset content length when a redirect creates a new connection.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2017-06-22 14:16:58 +02:00 committed by Alexandre Julliard
parent 5e2c243a14
commit f2bb2064bf
1 changed files with 2 additions and 2 deletions

View File

@ -2355,9 +2355,9 @@ static BOOL handle_redirect( request_t *request, DWORD status )
netconn_close( &request->netconn );
if (!(ret = netconn_init( &request->netconn ))) goto end;
request->content_length = request->content_read = 0;
request->read_pos = request->read_size = 0;
request->read_chunked = FALSE;
request->read_chunked_eof = FALSE;
request->read_chunked = request->read_chunked_eof = FALSE;
}
else heap_free( hostname );