Hans Leidekker : winhttp: Call drain_content() before clear_response_headers().

Alexandre Julliard julliard at winehq.org
Thu Sep 23 15:35:06 CDT 2021


Module: wine
Branch: master
Commit: 5da1d5924186312ab2fcdea2f8305c3ce5455950
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5da1d5924186312ab2fcdea2f8305c3ce5455950

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Thu Sep 23 14:58:27 2021 +0200

winhttp: Call drain_content() before clear_response_headers().

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winhttp/request.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index e229bdbfd31..dce3232c0e3 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -2082,8 +2082,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 );




More information about the wine-cvs mailing list