aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/http.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-11-04 11:50:19 +1300
committerAldo Cortesi <aldo@nullcube.com>2016-11-04 11:50:19 +1300
commit86b76614565463233e6eab18ebbef943409f3d17 (patch)
tree0eb983913dc938eed7384d8063dadf8f0f331dab /mitmproxy/http.py
parent067198a5dd5638afdec385be00ba457628d1a154 (diff)
downloadmitmproxy-86b76614565463233e6eab18ebbef943409f3d17.tar.gz
mitmproxy-86b76614565463233e6eab18ebbef943409f3d17.tar.bz2
mitmproxy-86b76614565463233e6eab18ebbef943409f3d17.zip
Remove sticky[auth,cookie] from http objects
- they're unused - if we want them, they should be set by the addon in the new metadata store
Diffstat (limited to 'mitmproxy/http.py')
-rw-r--r--mitmproxy/http.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/mitmproxy/http.py b/mitmproxy/http.py
index 1905791d..50174764 100644
--- a/mitmproxy/http.py
+++ b/mitmproxy/http.py
@@ -31,8 +31,6 @@ class HTTPRequest(http.Request):
timestamp_start=None,
timestamp_end=None,
is_replay=False,
- stickycookie=False,
- stickyauth=False,
):
http.Request.__init__(
self,
@@ -48,11 +46,6 @@ class HTTPRequest(http.Request):
timestamp_start,
timestamp_end,
)
-
- # Have this request's cookies been modified by sticky cookies or auth?
- self.stickycookie = stickycookie
- self.stickyauth = stickyauth
-
# Is this request replayed?
self.is_replay = is_replay
self.stream = None
@@ -60,15 +53,11 @@ class HTTPRequest(http.Request):
def get_state(self):
state = super().get_state()
state.update(
- stickycookie=self.stickycookie,
- stickyauth=self.stickyauth,
is_replay=self.is_replay,
)
return state
def set_state(self, state):
- self.stickycookie = state.pop("stickycookie")
- self.stickyauth = state.pop("stickyauth")
self.is_replay = state.pop("is_replay")
super().set_state(state)