Handle "all slashes" routes (#17596)

This commit is contained in:
Kenn Jacobsen
2024-11-22 09:06:10 +01:00
committed by GitHub
parent 9febbc7db1
commit cbd4dc6e0d
2 changed files with 8 additions and 0 deletions

View File

@@ -23,7 +23,9 @@ public class UriUtilityTests
// test that the trailing slash goes but not on hostname
[TestCase("http://LocalHost/", "http://localhost/")]
[TestCase("http://LocalHost/////", "http://localhost/")]
[TestCase("http://LocalHost/Home/", "http://localhost/home")]
[TestCase("http://LocalHost/Home/////", "http://localhost/home")]
[TestCase("http://LocalHost/Home/?x=y", "http://localhost/home?x=y")]
[TestCase("http://LocalHost/Home/Sub1/", "http://localhost/home/sub1")]
[TestCase("http://LocalHost/Home/Sub1/?x=y", "http://localhost/home/sub1?x=y")]