aboutsummaryrefslogtreecommitdiffstats
path: root/examples/har_dump.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-10-24 19:19:46 -0700
committerGitHub <noreply@github.com>2016-10-24 19:19:46 -0700
commitee8c7b31ab0eb468437deb639e3acaef4ec8b638 (patch)
tree9bbc9149d15fef90cf79a938e0e43f16602701dc /examples/har_dump.py
parent21f133fae9faf16f5b4322fab3e92eaa8a2bb719 (diff)
parent39d7ba852c38e45322a55794fba9e06d7fcbc6ce (diff)
downloadmitmproxy-ee8c7b31ab0eb468437deb639e3acaef4ec8b638.tar.gz
mitmproxy-ee8c7b31ab0eb468437deb639e3acaef4ec8b638.tar.bz2
mitmproxy-ee8c7b31ab0eb468437deb639e3acaef4ec8b638.zip
Merge pull request #1661 from slobo/patch-1
Include `boudary=...` in mutipart postData
Diffstat (limited to 'examples/har_dump.py')
-rw-r--r--examples/har_dump.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/har_dump.py b/examples/har_dump.py
index efcf9d74..ab7bf1e1 100644
--- a/examples/har_dump.py
+++ b/examples/har_dump.py
@@ -140,7 +140,7 @@ def response(flow):
for a, b in flow.request.urlencoded_form.items(multi=True)
]
entry["request"]["postData"] = {
- "mimeType": flow.request.headers.get("Content-Type", "").split(";")[0],
+ "mimeType": flow.request.headers.get("Content-Type", ""),
"text": flow.request.get_text(strict=False),
"params": params
}