We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed6ce82 commit d66ea05Copy full SHA for d66ea05
1 file changed
Lib/http/client.py
@@ -261,6 +261,8 @@ def _read_status(self):
261
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
262
if len(line) > _MAXLINE:
263
raise LineTooLong("status line")
264
+ if self.debuglevel > 0:
265
+ _log.info("reply: {}".format(repr(line)))
266
if not line:
267
# Presumably, the server closed the connection before
268
# sending a valid response.
@@ -308,6 +310,9 @@ def begin(self):
308
310
if not skip:
309
311
break
312
313
314
+ _log.info("header: {}".format(skip))
315
+
316
self.code = self.status = status
317
self.reason = reason.strip()
318
if version in ("HTTP/1.0", "HTTP/0.9"):
0 commit comments