From c7e921c7f8ee352b2b764de2c12cd39dace2e3d3 Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Fri, 7 Jun 2024 17:24:00 +0100 Subject: Tests: chunked request body --- test/unit/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/unit/http.py') diff --git a/test/unit/http.py b/test/unit/http.py index 9401501b..e449c8b5 100644 --- a/test/unit/http.py +++ b/test/unit/http.py @@ -67,7 +67,7 @@ class HTTP1: headers['Content-Type'] = content_type - if 'Content-Length' not in headers: + if 'Content-Length' not in headers and 'Transfer-Encoding' not in headers: headers['Content-Length'] = len(body) for header, value in headers.items(): -- cgit