File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public async Task rp_is_added()
1414 . FromServer ( "/proxy" , options=> options . Via . Pseudonym = "componentName" )
1515 . ToServer ( "/proxied" , async ctx => ctx . Request . Headers [ "Via" ] )
1616 . GetAsync ( "proxy" ) ;
17- response . Content . ShouldBe ( "HTTP/2.0 componentName") ;
17+ response . Content . ShouldMatch ( "( \\ S+) componentName") ;
1818 }
1919 }
2020}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public async Task rp_is_appended()
1515 . ToServer ( "/proxied" , async ctx => ctx . Request . Headers [ "Via" ] )
1616 . AddHeader ( "Via" , "1.1 identifier" )
1717 . GetAsync ( "proxy" ) ;
18- response . Content . ShouldBe ( "1.1 identifier,HTTP/2.0 componentName" ) ;
18+ response . Content . ShouldMatch ( @ "1.1 identifier,(\S+) componentName") ;
1919 }
2020 }
2121}
You can’t perform that action at this time.
0 commit comments