Skip to content

Commit ed6ce82

Browse files
fix test_httplib for logging
1 parent 335a668 commit ed6ce82

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/http/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,9 @@ def _tunnel(self):
938938
if line in (b'\r\n', b'\n', b''):
939939
break
940940

941+
if self.debuglevel > 0:
942+
_log.info('header: {}'.format(line.decode()))
943+
941944
def connect(self):
942945
"""Connect to the host and port specified in __init__."""
943946
_log.debug('Opening socket to %s:%s', self.host, self.port)

0 commit comments

Comments
 (0)