From 12f17f9b81601c676720de4e4b7ab3699f88c055 Mon Sep 17 00:00:00 2001 From: Mike Nolan Date: Sun, 31 Aug 2025 21:18:45 -0500 Subject: [PATCH] Fix redirect --- src/Http/HttpClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/HttpClient.cpp b/src/Http/HttpClient.cpp index 3bcf335..8307f24 100644 --- a/src/Http/HttpClient.cpp +++ b/src/Http/HttpClient.cpp @@ -257,7 +257,7 @@ namespace Tesses::Framework::Http Uri uri2; - if(req.followRedirects && (this->statusCode == MovedPermanently || this->statusCode == PermanentRedirect || this->statusCode == TemporaryRedirect) && this->responseHeaders.TryGetFirst("Location",location) && uri.Relative(location, uri2)) + if(req.followRedirects && (this->statusCode == MovedPermanently || this->statusCode == PermanentRedirect || this->statusCode == TemporaryRedirect || this->statusCode == SeeOther || this->statusCode == Found) && this->responseHeaders.TryGetFirst("Location",location) && uri.Relative(location, uri2)) { this->responseHeaders.Clear();