You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rj...@apache.org on 2023/03/09 10:56:42 UTC

svn commit: r1908221 - /httpd/httpd/branches/2.4.x/test/pyhttpd/nghttp.py

Author: rjung
Date: Thu Mar  9 10:56:42 2023
New Revision: 1908221

URL: http://svn.apache.org/viewvc?rev=1908221&view=rev
Log:
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.

Modified:
    httpd/httpd/branches/2.4.x/test/pyhttpd/nghttp.py

Modified: httpd/httpd/branches/2.4.x/test/pyhttpd/nghttp.py
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/test/pyhttpd/nghttp.py?rev=1908221&r1=1908220&r2=1908221&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/test/pyhttpd/nghttp.py (original)
+++ httpd/httpd/branches/2.4.x/test/pyhttpd/nghttp.py Thu Mar  9 10:56:42 2023
@@ -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):