@@ -71,14 +71,14 @@ public async Task XForwardedHostOverrideChangesRequestHost()
71
71
app . UseOverrideHeaders ( options ) ;
72
72
app . Run ( context =>
73
73
{
74
- Assert . Equal ( "testHost " , context . Request . Host . ToString ( ) ) ;
74
+ Assert . Equal ( "testhost " , context . Request . Host . ToString ( ) ) ;
75
75
assertsExecuted = true ;
76
76
return Task . FromResult ( 0 ) ;
77
77
} ) ;
78
78
} ) ;
79
79
80
80
var req = new HttpRequestMessage ( HttpMethod . Get , "" ) ;
81
- req . Headers . Add ( "X-Forwarded-Host" , "testHost " ) ;
81
+ req . Headers . Add ( "X-Forwarded-Host" , "testhost " ) ;
82
82
await server . CreateClient ( ) . SendAsync ( req ) ;
83
83
Assert . True ( assertsExecuted ) ;
84
84
}
@@ -127,7 +127,7 @@ public async Task AllForwardsEnabledChangeRequestRemoteIpHostandProtocol()
127
127
app . Run ( context =>
128
128
{
129
129
Assert . Equal ( "11.111.111.11" , context . Connection . RemoteIpAddress . ToString ( ) ) ;
130
- Assert . Equal ( "testHost " , context . Request . Host . ToString ( ) ) ;
130
+ Assert . Equal ( "testhost " , context . Request . Host . ToString ( ) ) ;
131
131
Assert . Equal ( "Protocol" , context . Request . Scheme ) ;
132
132
assertsExecuted = true ;
133
133
return Task . FromResult ( 0 ) ;
@@ -136,7 +136,7 @@ public async Task AllForwardsEnabledChangeRequestRemoteIpHostandProtocol()
136
136
137
137
var req = new HttpRequestMessage ( HttpMethod . Get , "" ) ;
138
138
req . Headers . Add ( "X-Forwarded-For" , "11.111.111.11" ) ;
139
- req . Headers . Add ( "X-Forwarded-Host" , "testHost " ) ;
139
+ req . Headers . Add ( "X-Forwarded-Host" , "testhost " ) ;
140
140
req . Headers . Add ( "X-Forwarded-Proto" , "Protocol" ) ;
141
141
await server . CreateClient ( ) . SendAsync ( req ) ;
142
142
Assert . True ( assertsExecuted ) ;
@@ -199,4 +199,4 @@ public async Task PartiallyEnabledForwardsPartiallyChangesRequest()
199
199
Assert . True ( assertsExecuted ) ;
200
200
}
201
201
}
202
- }
202
+ }
0 commit comments