aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/net
diff options
context:
space:
mode:
authorkira0204 <rshtmudgal@gmail.com>2018-02-15 08:40:54 +0530
committerkira0204 <rshtmudgal@gmail.com>2018-02-15 08:40:54 +0530
commite82641ee2d4287a0c422956e28c858b7877cfe01 (patch)
tree7a3adb4f8e28ccbaa610f4d831c0b953c54718b4 /mitmproxy/net
parentbaf4b5dc03c3b87fbef6e5df422eb7654594978f (diff)
downloadmitmproxy-e82641ee2d4287a0c422956e28c858b7877cfe01.tar.gz
mitmproxy-e82641ee2d4287a0c422956e28c858b7877cfe01.tar.bz2
mitmproxy-e82641ee2d4287a0c422956e28c858b7877cfe01.zip
fix 2794
Diffstat (limited to 'mitmproxy/net')
-rw-r--r--mitmproxy/net/http/request.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/net/http/request.py b/mitmproxy/net/http/request.py
index 6b4041f6..9eb98946 100644
--- a/mitmproxy/net/http/request.py
+++ b/mitmproxy/net/http/request.py
@@ -441,7 +441,7 @@ class Request(message.Message):
This will overwrite the existing content if there is one.
"""
self.headers["content-type"] = "application/x-www-form-urlencoded"
- self.content = mitmproxy.net.http.url.encode(form_data, self.content.decode()).encode()
+ self.content = mitmproxy.net.http.url.encode(form_data, self.get_text(strict=False)).encode()
@property
def urlencoded_form(self):