diff options
author | Abdullah Osama <abdullahosama15@gmail.com> | 2022-10-11 14:42:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-11 12:42:11 +0000 |
commit | a9934d48c193bc963e3d232ed83c5cbfa3e5152d (patch) | |
tree | 5d7e8a8f05164df5781491b399896f8685dd2611 /tests/http/test_endpoint.py | |
parent | Enable dependabot for Rust dependencies (#14132) (diff) | |
download | synapse-a9934d48c193bc963e3d232ed83c5cbfa3e5152d.tar.xz |
Making parse_server_name more consistent (#14007)
Fixes #12122
Diffstat (limited to 'tests/http/test_endpoint.py')
-rw-r--r-- | tests/http/test_endpoint.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/http/test_endpoint.py b/tests/http/test_endpoint.py index c8cc21cadd..a801f002a0 100644 --- a/tests/http/test_endpoint.py +++ b/tests/http/test_endpoint.py @@ -25,6 +25,8 @@ class ServerNameTestCase(unittest.TestCase): "[0abc:1def::1234]": ("[0abc:1def::1234]", None), "1.2.3.4:1": ("1.2.3.4", 1), "[0abc:1def::1234]:8080": ("[0abc:1def::1234]", 8080), + ":80": ("", 80), + "": ("", None), } for i, o in test_data.items(): @@ -42,6 +44,7 @@ class ServerNameTestCase(unittest.TestCase): "newline.com\n", ".empty-label.com", "1234:5678:80", # too many colons + ":80", ] for i in test_data: try: |