File tree Expand file tree Collapse file tree 2 files changed +0
-35
lines changed Expand file tree Collapse file tree 2 files changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -234,20 +234,5 @@ public static IApplicationBuilder UseInternalServerErrorOnException(this IApplic
234
234
235
235
return application . UseMiddleware < InternalServerErrorOnExceptionMiddleware > ( ) ;
236
236
}
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
- }
252
237
}
253
238
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments