mirror of
https://github.com/Lidarr/Lidarr
synced 2026-01-06 23:56:11 +01:00
Fixed: Correct User-Agent api logging
This commit is contained in:
parent
90fb1a02c4
commit
a40f537004
1 changed files with 2 additions and 2 deletions
|
|
@ -79,13 +79,13 @@ private static string GetRequestPathAndQuery(HttpRequest request)
|
|||
|
||||
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…
Reference in a new issue