winhttp: Call drain_content() before clear_response_headers().
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 5da1d59241
)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
parent
90661a5d93
commit
ddd57141e1
|
@ -2077,8 +2077,8 @@ static DWORD send_request( struct request *request, const WCHAR *headers, DWORD
|
|||
int bytes_sent;
|
||||
DWORD ret, len;
|
||||
|
||||
clear_response_headers( request );
|
||||
drain_content( request );
|
||||
clear_response_headers( request );
|
||||
|
||||
if (session->agent)
|
||||
process_header( request, L"User-Agent", session->agent, WINHTTP_ADDREQ_FLAG_ADD_IF_NEW, TRUE );
|
||||
|
|
Loading…
Reference in New Issue