Commit 5da1d592 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winhttp: Call drain_content() before clear_response_headers().

parent 239964ce
...@@ -2082,8 +2082,8 @@ static DWORD send_request( struct request *request, const WCHAR *headers, DWORD ...@@ -2082,8 +2082,8 @@ static DWORD send_request( struct request *request, const WCHAR *headers, DWORD
int bytes_sent; int bytes_sent;
DWORD ret, len; DWORD ret, len;
clear_response_headers( request );
drain_content( request ); drain_content( request );
clear_response_headers( request );
if (session->agent) if (session->agent)
process_header( request, L"User-Agent", session->agent, WINHTTP_ADDREQ_FLAG_ADD_IF_NEW, TRUE ); process_header( request, L"User-Agent", session->agent, WINHTTP_ADDREQ_FLAG_ADD_IF_NEW, TRUE );
......
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