We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 977d906 commit dcd4e08Copy full SHA for dcd4e08
tests/test_header_utils.py
@@ -36,6 +36,15 @@ def test_normalize_headers_rejects_invalid_header_name_characters():
36
)
37
38
39
+def test_normalize_headers_accepts_valid_http_token_characters():
40
+ headers = normalize_headers(
41
+ {"X-Test_!#$%&'*+-.^`|~": "value"},
42
+ mapping_error_message="headers must be a mapping of string pairs",
43
+ )
44
+
45
+ assert headers == {"X-Test_!#$%&'*+-.^`|~": "value"}
46
47
48
def test_normalize_headers_rejects_duplicate_names_after_normalization():
49
with pytest.raises(
50
HyperbrowserError,
0 commit comments