]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix tests test_202_trailer.py::TestTrailers::test_h2_202_03b
authorRainer Jung <rjung@apache.org>
Thu, 9 Mar 2023 10:56:42 +0000 (10:56 +0000)
committerRainer Jung <rjung@apache.org>
Thu, 9 Mar 2023 10:56:42 +0000 (10:56 +0000)
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

test/pyhttpd/nghttp.py

index fe4a1aedff366df7d24e6355464cc740ebe2b489..f27e40d31955602a448a595e20a01326d79a1be2 100644 (file)
@@ -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):