From 9642eedc0a6d90d9502658a6569518741eea9ef3 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Fri, 13 May 2016 01:32:42 -0700 Subject: Issue #26892: Honor debuglevel flag in urllib.request.HTTPHandler. Patch contributed by Chi Hsuan Yen. --- Lib/urllib/request.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/urllib/request.py') diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index b28cd60158..5f40729fca 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -1211,6 +1211,7 @@ class AbstractHTTPHandler(BaseHandler): # will parse host:port h = http_class(host, timeout=req.timeout, **http_conn_args) + h.set_debuglevel(self._debuglevel) headers = dict(req.unredirected_hdrs) headers.update(dict((k, v) for k, v in req.headers.items() -- cgit v1.2.1