New: Use 307 redirect for requests missing URL Base

pull/2235/head
Mark McDowall 3 months ago committed by Bogdan
parent aee3f2d12b
commit 59bfad7614

@ -20,6 +20,8 @@ namespace Prowlarr.Http.Middleware
if (_urlBase.IsNotNullOrWhiteSpace() && context.Request.PathBase.Value.IsNullOrWhiteSpace())
{
context.Response.Redirect($"{_urlBase}{context.Request.Path}{context.Request.QueryString}");
context.Response.StatusCode = 307;
return;
}

Loading…
Cancel
Save