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

Alexandre Julliard julliard at winehq.org
Fri Feb 25 07:30:25 CST 2022


Module: wine
Branch: oldstable
Commit: ddd57141e1efa00e04e6670e5d67718cd36214f7
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ddd57141e1efa00e04e6670e5d67718cd36214f7

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>
(cherry picked from commit 5da1d5924186312ab2fcdea2f8305c3ce5455950)
Signed-off-by: Michael Stefaniuc <mstefani 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 f03149c1b7d..5623e09a043 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -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 );




More information about the wine-cvs mailing list