mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-08 19:58:21 -04:00
Just one Application Version header
(cherry picked from commit ab502ffda41aaae8bccaa4f33c62e3fca61b277f)
This commit is contained in:
@@ -16,9 +16,9 @@ namespace Radarr.Http.Extensions.Pipelines
|
||||
|
||||
private void Handle(NancyContext context)
|
||||
{
|
||||
if (!context.Response.Headers.ContainsKey("X-ApplicationVersion"))
|
||||
if (!context.Response.Headers.ContainsKey("X-Application-Version"))
|
||||
{
|
||||
context.Response.Headers.Add("X-ApplicationVersion", BuildInfo.Version.ToString());
|
||||
context.Response.Headers.Add("X-Application-Version", BuildInfo.Version.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user