Skip to content

Commit 06c297b

Browse files
committed
Test for presence of protocol, not which one is used in test harness
1 parent fc48896 commit 06c297b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)