diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-07-16 13:00:33 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-07-16 18:37:30 +1200 |
commit | 1a1f7e6fd94b434c4440d3cbc9407dbe3e0db6f9 (patch) | |
tree | 67ddc039e51fbfab1120bac7d40603d00db3dbb3 /netlib/http | |
parent | 17305643bc482c0b185eec5c64d506790cd26587 (diff) | |
download | mitmproxy-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/http')
-rw-r--r-- | netlib/http/headers.py | 4 |
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 |