@@ -31,10 +31,14 @@ def _request(host: str | None, origin: str | None, content_type: str | None = "a
3131 pytest .param (None , None , 421 , id = "missing-host" ),
3232 pytest .param ("evil.example" , None , 421 , id = "host-no-match" ),
3333 pytest .param ("evil.example:9000" , None , 421 , id = "host-wildcard-base-mismatch" ),
34+ pytest .param ("wild.example:9000.evil" , None , 421 , id = "host-wildcard-port-suffix" ),
35+ pytest .param ("wild.example:notaport" , None , 421 , id = "host-wildcard-nonnumeric-port" ),
3436 pytest .param ("good.example" , None , None , id = "host-exact-no-origin" ),
3537 pytest .param ("wild.example:9000" , None , None , id = "host-wildcard-match" ),
3638 pytest .param ("good.example" , "http://evil.example" , 403 , id = "origin-no-match" ),
3739 pytest .param ("good.example" , "http://evil.example:9000" , 403 , id = "origin-wildcard-base-mismatch" ),
40+ pytest .param ("good.example" , "http://wild.example:9000.evil" , 403 , id = "origin-wildcard-port-suffix" ),
41+ pytest .param ("good.example" , "http://wild.example:notaport" , 403 , id = "origin-wildcard-nonnumeric-port" ),
3842 pytest .param ("good.example" , "http://good.example" , None , id = "origin-exact" ),
3943 pytest .param ("good.example" , "http://wild.example:9000" , None , id = "origin-wildcard-match" ),
4044 ],
0 commit comments