diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2013-03-03 22:13:23 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2013-03-03 22:13:23 +1300 |
commit | 5f0ad7b2a6b857419017e3e72062ab4e0e328238 (patch) | |
tree | a85eac79dac5efc4ceab339caa1a8b5499e15128 /netlib/http.py | |
parent | 5a050bb6b2b1a0bf05f4cd35d87e6f1d7a2608c0 (diff) | |
download | mitmproxy-5f0ad7b2a6b857419017e3e72062ab4e0e328238.tar.gz mitmproxy-5f0ad7b2a6b857419017e3e72062ab4e0e328238.tar.bz2 mitmproxy-5f0ad7b2a6b857419017e3e72062ab4e0e328238.zip |
Ensure that HTTP methods are ASCII.
Diffstat (limited to 'netlib/http.py')
-rw-r--r-- | netlib/http.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/netlib/http.py b/netlib/http.py index 0f2caa5a..f1a2bfb5 100644 --- a/netlib/http.py +++ b/netlib/http.py @@ -227,6 +227,8 @@ def parse_init(line): httpversion = parse_http_protocol(protocol) if not httpversion: return None + if not utils.isascii(method): + return None return method, url, httpversion |