From 18039a3621dcc4febe30f812a5293f6c5c9fa966 Mon Sep 17 00:00:00 2001 From: Elvis Pranskevichus Date: Wed, 16 Oct 2024 10:33:18 -0700 Subject: [PATCH] Bump bundled llhttp to 9.2.1 CVE-2024-27982 Adjust tests that relied on header folding. Fixes: #111 --- tests/test_parser.py | 8 +++----- vendor/llhttp | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/test_parser.py b/tests/test_parser.py index 7535e1f..d3b8db7 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -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 @@ -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)) diff --git a/vendor/llhttp b/vendor/llhttp index caed04d..610a87d 160000 --- a/vendor/llhttp +++ b/vendor/llhttp @@ -1 +1 @@ -Subproject commit caed04d6c1251e54c642bddfc7d0330af234f0d3 +Subproject commit 610a87d755f6bae466cd871c2ba97574ccac5483