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:52:14 UTC
svn commit: r1908220 - /httpd/httpd/trunk/test/pyhttpd/nghttp.py
Author: rjung
Date: Thu Mar 9 10:52:14 2023
New Revision: 1908220
URL: http://svn.apache.org/viewvc?rev=1908220&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/trunk/test/pyhttpd/nghttp.py
Modified: httpd/httpd/trunk/test/pyhttpd/nghttp.py
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/test/pyhttpd/nghttp.py?rev=1908220&r1=1908219&r2=1908220&view=diff
==============================================================================
--- httpd/httpd/trunk/test/pyhttpd/nghttp.py (original)
+++ httpd/httpd/trunk/test/pyhttpd/nghttp.py Thu Mar 9 10:52:14 2023
@@ -254,7 +254,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):