Skip to content

Commit

Permalink
Bump bundled llhttp to 9.2.1
Browse files Browse the repository at this point in the history
CVE-2024-27982

Adjust tests that relied on header folding.

Fixes: #111
  • Loading branch information
elprans committed Oct 16, 2024
1 parent 21a199d commit 18039a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@

RESPONSE1_HEAD = b'''HTTP/1.1 200 OK
Date: Mon, 23 May 2005 22:38:34 GMT
Server: Apache/1.3.3.7
(Unix) (Red-Hat/Linux)
Server: Apache/1.3.3.7 (Unix) (Red-Hat/Linux)
Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT
ETag: "3f80f-1b6-3e1cb03b"
Content-Type: text/html;
charset=UTF-8
Content-Type: text/html; charset=UTF-8
Content-Length: 130
Accept-Ranges: bytes
Connection: close
Expand Down Expand Up @@ -89,7 +87,7 @@ def test_parser_response_1(self):
self.assertEqual(len(headers), 8)
self.assertEqual(headers.get(b'Connection'), b'close')
self.assertEqual(headers.get(b'Content-Type'),
b'text/html; charset=UTF-8')
b'text/html; charset=UTF-8')

self.assertFalse(m.on_body.called)
p.feed_data(bytearray(RESPONSE1_BODY))
Expand Down
2 changes: 1 addition & 1 deletion vendor/llhttp
Submodule llhttp updated 6 files
+8 −6 CMakeLists.txt
+96 −29 README.md
+101 −13 include/llhttp.h
+49 −1 src/api.c
+23 −3 src/http.c
+1,530 −10,044 src/llhttp.c

0 comments on commit 18039a3

Please sign in to comment.