Skip to content

Commit 7d8cefc

Browse files
committed
restore debug messages
1 parent 0200725 commit 7d8cefc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/http/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,10 @@ def _tunnel(self):
946946

947947
self._proxy_response_headers = parse_headers(response.fp)
948948

949+
if self.debuglevel > 0:
950+
for hdr, val in self._proxy_response_headers.items():
951+
print("header:", hdr + ":", val)
952+
949953
if code != http.HTTPStatus.OK:
950954
self.close()
951955
raise OSError(f"Tunnel connection failed: {code} {message.strip()}")

0 commit comments

Comments
 (0)