diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-12-19 15:19:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-19 15:19:02 +0100 |
commit | cbc0d3fd410f50508fdd7b4cb05bac8f6a18a3a4 (patch) | |
tree | 55816c91cb7d4ac9a230bba9322bab0b83c809a7 /examples/complex/har_dump.py | |
parent | 504c289ad0d670fbdc0fb0f598d2e693cda9f5f7 (diff) | |
parent | c4e90000210c392464944261c44e0bf1ed08608c (diff) | |
download | mitmproxy-cbc0d3fd410f50508fdd7b4cb05bac8f6a18a3a4.tar.gz mitmproxy-cbc0d3fd410f50508fdd7b4cb05bac8f6a18a3a4.tar.bz2 mitmproxy-cbc0d3fd410f50508fdd7b4cb05bac8f6a18a3a4.zip |
Merge pull request #1876 from mhils/1858
fix #1858
Diffstat (limited to 'examples/complex/har_dump.py')
-rw-r--r-- | examples/complex/har_dump.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/complex/har_dump.py b/examples/complex/har_dump.py index aeb154d2..62011903 100644 --- a/examples/complex/har_dump.py +++ b/examples/complex/har_dump.py @@ -136,7 +136,7 @@ def response(flow): if flow.request.method in ["POST", "PUT", "PATCH"]: params = [ - {"name": a.decode("utf8", "surrogateescape"), "value": b.decode("utf8", "surrogateescape")} + {"name": a, "value": b} for a, b in flow.request.urlencoded_form.items(multi=True) ] entry["request"]["postData"] = { |