|
|
@ -16,9 +16,9 @@ namespace Sonarr.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());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|