This commit is contained in:
kira0204 2018-02-15 08:40:54 +05:30
parent baf4b5dc03
commit e82641ee2d

View File

@ -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):