aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/net
diff options
context:
space:
mode:
authorkira0204 <rshtmudgal@gmail.com>2018-02-19 11:10:19 +0530
committerkira0204 <rshtmudgal@gmail.com>2018-02-19 11:10:19 +0530
commita519afb9c92715880e5be91ffedc1d9f4e7ce904 (patch)
treef5ee71dc691b8d808dc3c9af5aa17c1c3fe347c4 /mitmproxy/net
parent60cd8cb0b10d1e7737d1d1da4a5c65481d94416c (diff)
downloadmitmproxy-a519afb9c92715880e5be91ffedc1d9f4e7ce904.tar.gz
mitmproxy-a519afb9c92715880e5be91ffedc1d9f4e7ce904.tar.bz2
mitmproxy-a519afb9c92715880e5be91ffedc1d9f4e7ce904.zip
Fixing getter
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 9eb98946..4ef6cceb 100644
--- a/mitmproxy/net/http/request.py
+++ b/mitmproxy/net/http/request.py
@@ -430,7 +430,7 @@ class Request(message.Message):
is_valid_content_type = "application/x-www-form-urlencoded" in self.headers.get("content-type", "").lower()
if is_valid_content_type:
try:
- return tuple(mitmproxy.net.http.url.decode(self.content.decode()))
+ return tuple(mitmproxy.net.http.url.decode(self.get_text(strict=False)))
except ValueError:
pass
return ()