Module: wine Branch: oldstable Commit: 73e998ab027abde80d30bcc2337666af9fc2dcda URL: https://source.winehq.org/git/wine.git/?a=commit;h=73e998ab027abde80d30bcc23...
Author: Hans Leidekker hans@codeweavers.com Date: Thu Sep 23 14:58:28 2021 +0200
winhttp: Fix return value for relative redirects.
Signed-off-by: Hans Leidekker hans@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org (cherry picked from commit ec46607ee0b215544aa8acd3c3bb30405ed5579e) Signed-off-by: Michael Stefaniuc mstefani@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 5623e09a043..c5c300b0768 100644 --- a/dlls/winhttp/request.c +++ b/dlls/winhttp/request.c @@ -2570,6 +2570,7 @@ static DWORD handle_redirect( struct request *request, DWORD status ) } heap_free( request->path ); request->path = path; + ret = ERROR_SUCCESS;
send_callback( &request->hdr, WINHTTP_CALLBACK_STATUS_REDIRECT, location, len_loc + 1 ); }