mirror of
https://github.com/Radarr/Radarr.git
synced 2025-04-23 22:17:15 -04:00
Fixed: Correct User-Agent api logging
This commit is contained in:
parent
7f2d5d8d10
commit
5824ba963b
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue