diff options
Diffstat (limited to 'Lib/http')
-rw-r--r-- | Lib/http/client.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py index 392715b..a77e501 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -776,6 +776,9 @@ class HTTPConnection: if line in (b'\r\n', b'\n', b''): break + if self.debuglevel > 0: + print('header:', line.decode()) + def connect(self): """Connect to the host and port specified in __init__.""" self.sock = self._create_connection( |