mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-23 21:31:00 +02:00
New: Use 307 redirect for requests missing URL Base
This commit is contained in:
parent
aee3f2d12b
commit
59bfad7614
1 changed files with 2 additions and 0 deletions
|
|
@ -20,6 +20,8 @@ public async Task InvokeAsync(HttpContext context)
|
|||
if (_urlBase.IsNotNullOrWhiteSpace() && context.Request.PathBase.Value.IsNullOrWhiteSpace())
|
||||
{
|
||||
context.Response.Redirect($"{_urlBase}{context.Request.Path}{context.Request.QueryString}");
|
||||
context.Response.StatusCode = 307;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue