aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/net/test_check.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/mitmproxy/net/test_check.py b/test/mitmproxy/net/test_check.py
index 18a50157..36dca168 100644
--- a/test/mitmproxy/net/test_check.py
+++ b/test/mitmproxy/net/test_check.py
@@ -8,3 +8,5 @@ def test_is_valid_host():
assert check.is_valid_host(b"one.two")
assert not check.is_valid_host(b"one" * 255)
assert check.is_valid_host(b"one.two.")
+ # Allow underscore
+ assert check.is_valid_host(b"one_two")