mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 13:36:50 +01:00
Do not increase request stack depth when just adding response headers
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.Net;
|
||||
|
||||
@@ -158,10 +158,10 @@ namespace Tgstation.Server.Host.Extensions
|
||||
ArgumentNullException.ThrowIfNull(applicationBuilder);
|
||||
ArgumentNullException.ThrowIfNull(assemblyInformationProvider);
|
||||
|
||||
applicationBuilder.Use(async (context, next) =>
|
||||
applicationBuilder.Use((context, next) =>
|
||||
{
|
||||
context.Response.Headers.Add("X-Powered-By", assemblyInformationProvider.VersionPrefix);
|
||||
await next();
|
||||
return next();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user