mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-33365: print the header values beside the keys (GH-6611)
with debuglevel=1 only the header keys got printed. With this change the header values get printed as well and the single header entries get '\n' as a separator.
This commit is contained in:
parent
1261bfa83d
commit
936f03e7fa
3 changed files with 17 additions and 1 deletions
|
@ -321,7 +321,7 @@ class HTTPResponse(io.BufferedIOBase):
|
|||
|
||||
if self.debuglevel > 0:
|
||||
for hdr in self.headers:
|
||||
print("header:", hdr, end=" ")
|
||||
print("header:", hdr + ":", self.headers.get(hdr))
|
||||
|
||||
# are we using the chunked-style of transfer encoding?
|
||||
tr_enc = self.headers.get("transfer-encoding")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue