Skip to content

Commit ce09e7a

Browse files
committed
Remove NoServerHttpHeaderMiddleware
1 parent 2dcdeed commit ce09e7a

File tree

2 files changed

+0
-35
lines changed

2 files changed

+0
-35
lines changed

Source/Boxed.AspNetCore/ApplicationBuilderExtensions.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -234,20 +234,5 @@ public static IApplicationBuilder UseInternalServerErrorOnException(this IApplic
234234

235235
return application.UseMiddleware<InternalServerErrorOnExceptionMiddleware>();
236236
}
237-
238-
/// <summary>
239-
/// Removes the Server HTTP header from the HTTP response for marginally better security and performance.
240-
/// </summary>
241-
/// <param name="application">The application builder.</param>
242-
/// <returns>The same application builder.</returns>
243-
public static IApplicationBuilder UseNoServerHttpHeader(this IApplicationBuilder application)
244-
{
245-
if (application == null)
246-
{
247-
throw new ArgumentNullException(nameof(application));
248-
}
249-
250-
return application.UseMiddleware<NoServerHttpHeaderMiddleware>();
251-
}
252237
}
253238
}

Source/Boxed.AspNetCore/Middleware/NoServerHttpHeaderMiddleware.cs

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)