File tree 2 files changed +12
-4
lines changed
src/Microsoft.AspNet.HttpOverrides 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 6
6
using System . Threading . Tasks ;
7
7
using Microsoft . AspNet . Builder ;
8
8
using Microsoft . AspNet . Http ;
9
- using Microsoft . Extensions . Internal ;
10
9
11
10
namespace Microsoft . AspNet . HttpOverrides
12
11
{
@@ -21,8 +20,18 @@ public class OverrideHeaderMiddleware
21
20
private readonly OverrideHeaderMiddlewareOptions _options ;
22
21
private readonly RequestDelegate _next ;
23
22
24
- public OverrideHeaderMiddleware ( [ NotNull ] RequestDelegate next , [ NotNull ] OverrideHeaderMiddlewareOptions options )
23
+ public OverrideHeaderMiddleware ( RequestDelegate next , OverrideHeaderMiddlewareOptions options )
25
24
{
25
+ if ( next == null )
26
+ {
27
+ throw new ArgumentNullException ( nameof ( next ) ) ;
28
+ }
29
+
30
+ if ( options == null )
31
+ {
32
+ throw new ArgumentNullException ( nameof ( options ) ) ;
33
+ }
34
+
26
35
_options = options ;
27
36
_next = next ;
28
37
}
Original file line number Diff line number Diff line change 6
6
"url" : " git://github.com/aspnet/basicmiddleware"
7
7
},
8
8
"dependencies" : {
9
- "Microsoft.AspNet.Http.Extensions" : " 1.0.0-*" ,
10
- "Microsoft.Extensions.NotNullAttribute.Sources" : { "version" : " 1.0.0-*" , "type" : " build" }
9
+ "Microsoft.AspNet.Http.Extensions" : " 1.0.0-*"
11
10
},
12
11
"frameworks" : {
13
12
"dnx451" : { },
You can’t perform that action at this time.
0 commit comments