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

Fixed: Correct User-Agent api logging

(cherry picked from commit 5824ba963b480c920cee9d8ae6594c820167cd07)
pull/1676/head
Qstick 3 years ago
parent fa68a9559f
commit 03d2a85821

@ -79,13 +79,13 @@ namespace Readarr.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