summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRainer Jung <rjung@apache.org>2023-03-09 10:56:42 +0000
committerRainer Jung <rjung@apache.org>2023-03-09 10:56:42 +0000
commitba2532798d1af35eb0f31c350ddc15f49c29022b (patch)
treea93d9d96b782994b089e6ad41cd913f5aa9ea87a /test
parentff17d07755a19fbbe43abc27feeb174b5c5c97ee (diff)
downloadhttpd-ba2532798d1af35eb0f31c350ddc15f49c29022b.tar.gz
Fix tests test_202_trailer.py::TestTrailers::test_h2_202_03b
and test_202_trailer.py::TestTrailers::test_h2_202_04 by adding an explicit Content-Type header to the nghttp call. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1908221 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r--test/pyhttpd/nghttp.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/pyhttpd/nghttp.py b/test/pyhttpd/nghttp.py
index fe4a1aedff..f27e40d319 100644
--- a/test/pyhttpd/nghttp.py
+++ b/test/pyhttpd/nghttp.py
@@ -251,7 +251,9 @@ class Nghttp:
f.write("--DSAJKcd9876\n")
if not options:
options = []
- options.extend(["--data=%s" % reqbody])
+ options.extend([
+ "--data=%s" % reqbody,
+ "-HContent-Type: multipart/form-data; boundary=DSAJKcd9876"])
return self._raw(url, timeout, options)
def upload(self, url, fpath, timeout=5, options=None):