1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 09:02:48 -05:00

get rid of version weight

This commit is contained in:
Kyle Spearrin
2017-09-06 23:57:14 -04:00
parent acb6c59e5e
commit 24fe7a9f88
3 changed files with 4 additions and 23 deletions

View File

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