Skip to content

Commit 18039a3

Browse files
committed
Bump bundled llhttp to 9.2.1
CVE-2024-27982 Adjust tests that relied on header folding. Fixes: #111
1 parent 21a199d commit 18039a3

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

tests/test_parser.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66

77
RESPONSE1_HEAD = b'''HTTP/1.1 200 OK
88
Date: Mon, 23 May 2005 22:38:34 GMT
9-
Server: Apache/1.3.3.7
10-
(Unix) (Red-Hat/Linux)
9+
Server: Apache/1.3.3.7 (Unix) (Red-Hat/Linux)
1110
Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT
1211
ETag: "3f80f-1b6-3e1cb03b"
13-
Content-Type: text/html;
14-
charset=UTF-8
12+
Content-Type: text/html; charset=UTF-8
1513
Content-Length: 130
1614
Accept-Ranges: bytes
1715
Connection: close
@@ -89,7 +87,7 @@ def test_parser_response_1(self):
8987
self.assertEqual(len(headers), 8)
9088
self.assertEqual(headers.get(b'Connection'), b'close')
9189
self.assertEqual(headers.get(b'Content-Type'),
92-
b'text/html; charset=UTF-8')
90+
b'text/html; charset=UTF-8')
9391

9492
self.assertFalse(m.on_body.called)
9593
p.feed_data(bytearray(RESPONSE1_BODY))

0 commit comments

Comments
 (0)