1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-26 12:55:17 +01:00

version version header

This commit is contained in:
Kyle Spearrin 2017-08-25 11:59:38 -04:00
parent 3c3e102f89
commit cff64a21cf

View File

@ -291,8 +291,8 @@ namespace Bit.Core.Utilities
httpContext.Response.OnStarting((state) => httpContext.Response.OnStarting((state) =>
{ {
var info = CoreHelpers.GetVersionInfo(); var info = CoreHelpers.GetVersionInfo();
httpContext.Response.Headers.Append("Version", info.version); httpContext.Response.Headers.Append("Server-Version", info.version);
httpContext.Response.Headers.Append("VersionWeight", info.versionWeight.ToString()); httpContext.Response.Headers.Append("Server-Version-Weight", info.versionWeight.ToString());
return Task.FromResult(0); return Task.FromResult(0);
}, null); }, null);