diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-05-20 09:37:13 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-05-20 09:37:13 -0700 |
commit | 560fc756aa87c06c563f3255a4ec5c2002538fd4 (patch) | |
tree | ab0dae59c45b9ed1201af2cfc73073c8a1c27cf9 /netlib/http | |
parent | 56b9ec09745a78f1fdb818fca77bc7e9eba01b8b (diff) | |
download | mitmproxy-560fc756aa87c06c563f3255a4ec5c2002538fd4.tar.gz mitmproxy-560fc756aa87c06c563f3255a4ec5c2002538fd4.tar.bz2 mitmproxy-560fc756aa87c06c563f3255a4ec5c2002538fd4.zip |
fix Header docs
Diffstat (limited to 'netlib/http')
-rw-r--r-- | netlib/http/headers.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/netlib/http/headers.py b/netlib/http/headers.py index 8959394c..60d3f429 100644 --- a/netlib/http/headers.py +++ b/netlib/http/headers.py @@ -44,9 +44,9 @@ class Headers(MultiDict): # Headers can also be created from a list of raw (header_name, header_value) byte tuples >>> h = Headers([ - [b"Host",b"example.com"], - [b"Accept",b"text/html"], - [b"accept",b"application/xml"] + (b"Host",b"example.com"), + (b"Accept",b"text/html"), + (b"accept",b"application/xml") ]) # Multiple headers are folded into a single header as per RFC7230 |