summaryrefslogtreecommitdiffhomepage
path: root/test/unit
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2024-06-07 17:24:00 +0100
committerandrey-zelenkov <xim.andrew@gmail.com>2024-06-24 14:17:51 +0100
commitc7e921c7f8ee352b2b764de2c12cd39dace2e3d3 (patch)
treead11495aeb338c00e03df715627f03fb79fb0b49 /test/unit
parentc88265a800ccae96935f8a4f99364b22e5da3bbc (diff)
downloadunit-c7e921c7f8ee352b2b764de2c12cd39dace2e3d3.tar.gz
unit-c7e921c7f8ee352b2b764de2c12cd39dace2e3d3.tar.bz2
Tests: chunked request body
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/http.py2
1 files changed, 1 insertions, 1 deletions
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():