8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49e27f0 commit 2fc936eCopy full SHA for 2fc936e
Lib/test/test_urllib.py
@@ -329,6 +329,7 @@ def test_willclose(self):
329
finally:
330
self.unfakehttp()
331
332
+ @unittest.skipUnless(ssl, "ssl module required")
333
def test_url_with_control_char_rejected(self):
334
for char_no in list(range(0, 0x21)) + [0x7f]:
335
char = chr(char_no)
@@ -354,6 +355,7 @@ def test_url_with_control_char_rejected(self):
354
355
356
357
358
359
def test_url_with_newline_header_injection_rejected(self):
360
self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
361
host = "localhost:7777?a=1 HTTP/1.1\r\nX-injected: header\r\nTEST: 123"
0 commit comments