From ec46607ee0b215544aa8acd3c3bb30405ed5579e Mon Sep 17 00:00:00 2001
From: Hans Leidekker <hans@codeweavers.com>
Date: Thu, 23 Sep 2021 14:58:28 +0200
Subject: [PATCH] winhttp: Fix return value for relative redirects.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
---
 dlls/winhttp/request.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index dce3232c0e3..0155d5780fe 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -2575,6 +2575,7 @@ static DWORD handle_redirect( struct request *request, DWORD status )
         }
         free( request->path );
         request->path = path;
+        ret = ERROR_SUCCESS;
 
         send_callback( &request->hdr, WINHTTP_CALLBACK_STATUS_REDIRECT, location, len_loc + 1 );
     }
-- 
GitLab