diff options
-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): |