From 891fa50e554963ef7cf236b087cfbedfaf19849e Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Sun, 9 Aug 2015 22:15:58 +0200 Subject: move code to netlib --- libmproxy/protocol/http_wrappers.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'libmproxy/protocol') 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) -- cgit v1.2.3