aboutsummaryrefslogtreecommitdiffstats
path: root/netlib
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-07-16 13:00:33 +1200
committerAldo Cortesi <aldo@nullcube.com>2016-07-16 18:37:30 +1200
commit1a1f7e6fd94b434c4440d3cbc9407dbe3e0db6f9 (patch)
tree67ddc039e51fbfab1120bac7d40603d00db3dbb3 /netlib
parent17305643bc482c0b185eec5c64d506790cd26587 (diff)
downloadmitmproxy-1a1f7e6fd94b434c4440d3cbc9407dbe3e0db6f9.tar.gz
mitmproxy-1a1f7e6fd94b434c4440d3cbc9407dbe3e0db6f9.tar.bz2
mitmproxy-1a1f7e6fd94b434c4440d3cbc9407dbe3e0db6f9.zip
replacehooks -> addon
Also fixes a bug in header replacements in netlib that resulted in a mutable multidict.
Diffstat (limited to 'netlib')
-rw-r--r--netlib/http/headers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/netlib/http/headers.py b/netlib/http/headers.py
index 413add87..c8cf3e43 100644
--- a/netlib/http/headers.py
+++ b/netlib/http/headers.py
@@ -183,8 +183,8 @@ class Headers(multidict.MultiDict):
pass
else:
replacements += n
- fields.append([name, value])
- self.fields = fields
+ fields.append((name, value))
+ self.fields = tuple(fields)
return replacements