Just one Application Version header

(cherry picked from commit ab502ffda41aaae8bccaa4f33c62e3fca61b277f)
pull/2071/head
Mark McDowall 4 years ago committed by Qstick
parent 74ddc955c7
commit f29db754db

@ -15,9 +15,9 @@ namespace Lidarr.Http.Extensions.Pipelines
private void Handle(NancyContext context) 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…
Cancel
Save