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