Skip to content

Commit 718d232

Browse files
committed
Fix other test for varying protocol name
1 parent 06c297b commit 718d232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tests/Plugins.ReverseProxy/via_headers/default_via_header.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public async Task request_domain_and_port_is_used()
1414
.FromServer("/proxy")
1515
.ToServer("/proxied", async ctx => ctx.Request.Headers["Via"])
1616
.GetAsync("http://source.example/proxy");
17-
response.Content.ShouldBe("HTTP/2.0 source.example:80");
17+
response.Content.ShouldMatch(@"\S+ source.example:80");
1818

1919
var via = response.Message.Headers.Via.ShouldHaveSingleItem();
2020
via.ReceivedBy.ShouldBe("source.example:80");

0 commit comments

Comments
 (0)