File tree 1 file changed +2
-1
lines changed 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 6
6
using Microsoft . AspNet . Builder ;
7
7
using Microsoft . AspNet . Hosting ;
8
8
using Microsoft . AspNet . Http ;
9
+ using Microsoft . AspNet . Http . Features ;
9
10
using Microsoft . Extensions . PlatformAbstractions ;
10
11
11
12
namespace Benchmarks
@@ -48,7 +49,7 @@ public async Task Invoke(HttpContext httpContext)
48
49
await httpContext . Response . WriteAsync ( $ "<li>Configuration: { _configurationName } </li>") ;
49
50
await httpContext . Response . WriteAsync ( $ "<li>Server: { _hostingEnv . Configuration [ "server" ] } </li>") ;
50
51
await httpContext . Response . WriteAsync ( $ "<li>Server URLs: { _hostingEnv . Configuration [ "server.urls" ] } </li>") ;
51
- await httpContext . Response . WriteAsync ( $ "<li>Supports Send File: { httpContext . Response . SupportsSendFile ( ) } </li>") ;
52
+ await httpContext . Response . WriteAsync ( $ "<li>Supports Send File: { httpContext . Features . Get < IHttpSendFileFeature > ( ) != null } </li>") ;
52
53
53
54
await httpContext . Response . WriteAsync ( $ "<li>Server features:<ul>") ;
54
55
You can’t perform that action at this time.
0 commit comments