diff --git a/Iceshrimp.Backend/Core/Services/CustomHttpClient.cs b/Iceshrimp.Backend/Core/Services/CustomHttpClient.cs index 8da75c68..d86c9500 100644 --- a/Iceshrimp.Backend/Core/Services/CustomHttpClient.cs +++ b/Iceshrimp.Backend/Core/Services/CustomHttpClient.cs @@ -298,7 +298,8 @@ public class CustomHttpClient : HttpClient } } - return location; + // Reject circular redirects + return location == requestUri ? null : location; } private static bool RequestRequiresForceGet(HttpStatusCode statusCode, HttpMethod requestMethod)