diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-08-11 11:59:37 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-08-11 11:59:37 +0200 |
commit | a9fcef868b369568163e19c73651c55ccea4604d (patch) | |
tree | f6d0347829b3cc7d35027083655b0de3762cef74 /libmproxy/protocol/http_wrappers.py | |
parent | a10c31c6984f9b6646d2a7bad05ace912ea152a7 (diff) | |
parent | 891fa50e554963ef7cf236b087cfbedfaf19849e (diff) | |
download | mitmproxy-a9fcef868b369568163e19c73651c55ccea4604d.tar.gz mitmproxy-a9fcef868b369568163e19c73651c55ccea4604d.tar.bz2 mitmproxy-a9fcef868b369568163e19c73651c55ccea4604d.zip |
Merge pull request #720 from Kriechi/cleanup
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) |