Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Radarr/commit/5824ba963b480c920cee9d8ae6594c820167cd07?style=unified&whitespace=ignore-change You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fixed: Correct User-Agent api logging

pull/7270/head
Qstick 3 years ago committed by GitHub
parent 7f2d5d8d10
commit 5824ba963b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -79,13 +79,13 @@ namespace Radarr.Http.Middleware
private static string GetOrigin(HttpContext context)
{
if (context.Request.Headers["UserAgent"].ToString().IsNullOrWhiteSpace())
if (context.Request.Headers["User-Agent"].ToString().IsNullOrWhiteSpace())
{
return context.GetRemoteIP();
}
else
{
return $"{context.GetRemoteIP()} {context.Request.Headers["UserAgent"]}";
return $"{context.GetRemoteIP()} {context.Request.Headers["User-Agent"]}";
}
}
}

Loading…
Cancel
Save