New: Use 307 redirect for requests missing URL Base

pull/10523/head
Mark McDowall 3 months ago committed by Bogdan
parent da1b53b7e2
commit f6542bab0a

@ -20,6 +20,8 @@ namespace Radarr.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