diff options
author | Rainer Jung <rjung@apache.org> | 2023-03-09 11:52:14 +0100 |
---|---|---|
committer | Rainer Jung <rjung@apache.org> | 2023-03-09 11:52:14 +0100 |
commit | 9239fe521321c13cf6b5c64c3f50909b08635206 (patch) | |
tree | 5e3f4d8d1e6f08783a5a44fbb7d3983838bd1541 | |
parent | * Add CHANGES entry for r1907505 [skip ci] (diff) | |
download | apache2-9239fe521321c13cf6b5c64c3f50909b08635206.tar.xz apache2-9239fe521321c13cf6b5c64c3f50909b08635206.zip |
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/trunk@1908220 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | test/pyhttpd/nghttp.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/pyhttpd/nghttp.py b/test/pyhttpd/nghttp.py index 3c9b0c4444..bfcbf29a26 100644 --- a/test/pyhttpd/nghttp.py +++ b/test/pyhttpd/nghttp.py @@ -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): |