diff --git a/Lib/http/client.py b/Lib/http/client.py index 1292db7478..2fcb2c04fe 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -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), end="\n") # are we using the chunked-style of transfer encoding? tr_enc = self.headers.get("transfer-encoding")