diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-07-04 18:15:03 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-07-04 18:59:51 +0100 |
commit | 546bc9e28b3d7758c732df8e120639d58d455164 (patch) | |
tree | 82be7e3ca557fc0997438f0fec1d644862f3dd07 /tests/http | |
parent | Merge pull request #3473 from matrix-org/erikj/thread_cache (diff) | |
download | synapse-546bc9e28b3d7758c732df8e120639d58d455164.tar.xz |
More server_name validation
We need to do a bit more validation when we get a server name, but don't want to be re-doing it all over the shop, so factor out a separate parse_and_validate_server_name, and do the extra validation. Also, use it to verify the server name in the config file.
Diffstat (limited to 'tests/http')
-rw-r--r-- | tests/http/test_endpoint.py | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/tests/http/test_endpoint.py b/tests/http/test_endpoint.py |