diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-08-09 22:15:58 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-08-10 21:04:17 +0200 |
commit | 891fa50e554963ef7cf236b087cfbedfaf19849e (patch) | |
tree | f6d0347829b3cc7d35027083655b0de3762cef74 /libmproxy/protocol/http_wrappers.py | |
parent | a10c31c6984f9b6646d2a7bad05ace912ea152a7 (diff) | |
download | mitmproxy-891fa50e554963ef7cf236b087cfbedfaf19849e.tar.gz mitmproxy-891fa50e554963ef7cf236b087cfbedfaf19849e.tar.bz2 mitmproxy-891fa50e554963ef7cf236b087cfbedfaf19849e.zip |
move code to netlib
Diffstat (limited to 'libmproxy/protocol/http_wrappers.py')
-rw-r--r-- | libmproxy/protocol/http_wrappers.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/libmproxy/protocol/http_wrappers.py b/libmproxy/protocol/http_wrappers.py index 758ebfe0..ed5759ea 100644 --- a/libmproxy/protocol/http_wrappers.py +++ b/libmproxy/protocol/http_wrappers.py @@ -219,14 +219,6 @@ class HTTPRequest(MessageMixin, semantics.Request): is_replay=bool ) - # This list is adopted legacy code. - # We probably don't need to strip off keep-alive. - _headers_to_strip_off = ['Proxy-Connection', - 'Keep-Alive', - 'Connection', - 'Transfer-Encoding', - 'Upgrade'] - @classmethod def from_state(cls, state): f = cls( @@ -360,11 +352,6 @@ class HTTPResponse(MessageMixin, semantics.Response): msg=str ) - _headers_to_strip_off = ['Proxy-Connection', - 'Alternate-Protocol', - 'Alt-Svc'] - - @classmethod def from_state(cls, state): f = cls(None, None, None, None, None) |