[backend/core] Reject circular redirects in CustomHttpClient
This commit is contained in:
parent
0f0726b172
commit
a1b57c7295
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue