diff options
author | Matt Houglum <houglum@google.com> | 2019-04-04 04:36:47 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2019-04-04 04:36:47 (GMT) |
commit | 461c416dd78a98f2bba7f323af8c9738e060b6f2 (patch) | |
tree | 1b9ac68c9591bcdd8c1361fa12ba84278cfc743f /Lib/http | |
parent | cb0748d3939c31168ab5d3b80e3677494497d5e3 (diff) | |
download | cpython-461c416dd78a98f2bba7f323af8c9738e060b6f2.zip cpython-461c416dd78a98f2bba7f323af8c9738e060b6f2.tar.gz cpython-461c416dd78a98f2bba7f323af8c9738e060b6f2.tar.bz2 |
bpo-36522: Print all values for headers with multiple values. (GH-12681)
Diffstat (limited to 'Lib/http')
-rw-r--r-- | Lib/http/client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py index 5aa178d..1de151c 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -320,8 +320,8 @@ class HTTPResponse(io.BufferedIOBase): self.headers = self.msg = parse_headers(self.fp) if self.debuglevel > 0: - for hdr in self.headers: - print("header:", hdr + ":", self.headers.get(hdr)) + for hdr, val in self.headers.items(): + print("header:", hdr + ":", val) # are we using the chunked-style of transfer encoding? tr_enc = self.headers.get("transfer-encoding") |