Skip to content

Commit 1970e87

Browse files
committed
test for unusual quotes and spaces
1 parent 04415e4 commit 1970e87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_encoding.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ class RequestEncodingTests(unittest.TestCase):
99
b"""<meta http-equiv="content-type" content="text/html;charset=UTF-8" />""",
1010
b"""\n<meta http-equiv="Content-Type"\ncontent="text/html; charset=utf-8">""",
1111
b"""<meta http-equiv="Content-Type" content="text/html" charset="utf-8">""",
12+
b"""<meta http-equiv=Content-Type content="text/html" charset='utf-8'>""",
13+
b"""<meta http-equiv="Content-Type" content\t=\n"text/html" charset\t="utf-8">""",
1214
b"""<meta content="text/html; charset=utf-8"\n http-equiv='Content-Type'>""",
1315
b""" bad html still supported < meta http-equiv='Content-Type'\n content="text/html; charset=utf-8">""",
1416
# html5 meta charset
1517
b"""<meta charset="utf-8">""",
18+
b"""<meta charset =\n"utf-8">""",
1619
# xml encoding
1720
b"""<?xml version="1.0" encoding="utf-8"?>""",
1821
]

0 commit comments

Comments
 (0)