Commit f2bb2064 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

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

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