mirror of
https://github.com/Lidarr/Lidarr
synced 2026-04-21 04:02:05 +02:00
Just one Application Version header
(cherry picked from commit ab502ffda41aaae8bccaa4f33c62e3fca61b277f)
This commit is contained in:
parent
74ddc955c7
commit
f29db754db
1 changed files with 2 additions and 2 deletions
|
|
@ -15,9 +15,9 @@ public void Register(IPipelines 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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue