mirror of
https://onedev.site.tesses.net/tesses-framework
synced 2026-02-09 00:05:46 +00:00
Fix redirect
This commit is contained in:
@@ -257,7 +257,7 @@ namespace Tesses::Framework::Http
|
|||||||
Uri uri2;
|
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();
|
this->responseHeaders.Clear();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user