mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
version version header
This commit is contained in:
parent
3c3e102f89
commit
cff64a21cf
@ -291,8 +291,8 @@ namespace Bit.Core.Utilities
|
||||
httpContext.Response.OnStarting((state) =>
|
||||
{
|
||||
var info = CoreHelpers.GetVersionInfo();
|
||||
httpContext.Response.Headers.Append("Version", info.version);
|
||||
httpContext.Response.Headers.Append("VersionWeight", info.versionWeight.ToString());
|
||||
httpContext.Response.Headers.Append("Server-Version", info.version);
|
||||
httpContext.Response.Headers.Append("Server-Version-Weight", info.versionWeight.ToString());
|
||||
return Task.FromResult(0);
|
||||
}, null);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user