aboutsummaryrefslogtreecommitdiffstats
path: root/netlib
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2016-07-16 18:57:41 +1200
committerGitHub <noreply@github.com>2016-07-16 18:57:41 +1200
commit903807292b42b2481a3d72d6dbdc72939fc39b01 (patch)
tree67ddc039e51fbfab1120bac7d40603d00db3dbb3 /netlib
parent17305643bc482c0b185eec5c64d506790cd26587 (diff)
parent1a1f7e6fd94b434c4440d3cbc9407dbe3e0db6f9 (diff)
downloadmitmproxy-903807292b42b2481a3d72d6dbdc72939fc39b01.tar.gz
mitmproxy-903807292b42b2481a3d72d6dbdc72939fc39b01.tar.bz2
mitmproxy-903807292b42b2481a3d72d6dbdc72939fc39b01.zip
Merge pull request #1363 from cortesi/replace
replacehooks -> addon
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