Do not increase request stack depth when just adding response headers

This commit is contained in:
Jordan Dominion
2023-11-17 22:25:06 -05:00
parent 7eafed4fb9
commit 3abf0b69f2
@@ -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();
});
}