aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/models
diff options
context:
space:
mode:
Diffstat (limited to 'mitmproxy/models')
-rw-r--r--mitmproxy/models/flow.py1
-rw-r--r--mitmproxy/models/http.py3
2 files changed, 0 insertions, 4 deletions
diff --git a/mitmproxy/models/flow.py b/mitmproxy/models/flow.py
index 95fb2b69..45b3b5e0 100644
--- a/mitmproxy/models/flow.py
+++ b/mitmproxy/models/flow.py
@@ -28,7 +28,6 @@ class Error(stateobject.StateObject):
@type msg: str
@type timestamp: float
"""
- self.flow = None # will usually be set by the flow backref mixin
self.msg = msg
self.timestamp = timestamp or utils.timestamp()
diff --git a/mitmproxy/models/http.py b/mitmproxy/models/http.py
index ede05228..a2afe96d 100644
--- a/mitmproxy/models/http.py
+++ b/mitmproxy/models/http.py
@@ -166,9 +166,6 @@ class HTTPRequest(MessageMixin, Request):
def __hash__(self):
return id(self)
- def set_auth(self, auth):
- self.data.headers.set_all("Proxy-Authorization", (auth,))
-
def replace(self, pattern, repl, *args, **kwargs):
"""
Replaces a regular expression pattern with repl in the headers, the