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:
parent
5e2c243a14
commit
f2bb2064bf
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue