aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/models/http.py
diff options
context:
space:
mode:
Diffstat (limited to 'mitmproxy/models/http.py')
-rw-r--r--mitmproxy/models/http.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/mitmproxy/models/http.py b/mitmproxy/models/http.py
index 40460182..4bba35f1 100644
--- a/mitmproxy/models/http.py
+++ b/mitmproxy/models/http.py
@@ -26,14 +26,6 @@ class MessageMixin(object):
return self.content
return encoding.decode(ce, self.content)
- def copy(self):
- c = copy.copy(self)
- if hasattr(self, "data"): # FIXME remove condition
- c.data = copy.copy(self.data)
-
- c.headers = self.headers.copy()
- return c
-
def replace(self, pattern, repl, *args, **kwargs):
"""
Replaces a regular expression pattern with repl in both the headers