diff options
Diffstat (limited to 'libmproxy/flow.py')
-rw-r--r-- | libmproxy/flow.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/flow.py b/libmproxy/flow.py index 85c48ce1..beaa85ef 100644 --- a/libmproxy/flow.py +++ b/libmproxy/flow.py @@ -8,7 +8,7 @@ import tnetstring, filt, script, utils, encoding, proxy from email.utils import parsedate_tz, formatdate, mktime_tz import controller, version -HDR_FORM_URLENCODED = "x-www-form-urlencoded" +HDR_FORM_URLENCODED = "application/x-www-form-urlencoded" class RunException(Exception): def __init__(self, msg, returncode, errout): @@ -332,7 +332,7 @@ class Request(HTTPMsg): Sets the body to the URL-encoded form data, and adds the appropriate content-type header. """ - self.headers["content-type"] = [HDR_FORM_URLENCODED] + self.headers["Content-Type"] = [HDR_FORM_URLENCODED] self.content = utils.urlencode(data) def get_query(self): |