Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Radarr/commit/4cc98a10a0bfe8660644ee48e70eac2966c92f4c You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fixed: Use route Id for PUT requests if not passed in body

Fixes 
pull/7841/head
Qstick 2 years ago
parent 1751bd1a58
commit 4cc98a10a0

@ -69,6 +69,12 @@ namespace Radarr.Http.REST
foreach (var resource in resourceArgs)
{
// Map route Id to body resource if not set in request
if (Request.Method == "PUT" && resource.Id == 0 && context.RouteData.Values.TryGetValue("id", out var routeId))
{
resource.Id = Convert.ToInt32(routeId);
}
ValidateResource(resource, skipValidate, skipShared);
}
}

Loading…
Cancel
Save