diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2016-05-13 08:35:29 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2016-05-13 08:35:29 (GMT) |
commit | 5d1110a952ee9551b249bcd4dd1f3d3bc21371b8 (patch) | |
tree | 185bc1479f27f930ec0ba53637928186dd9499ff /Lib/urllib/request.py | |
parent | f94ec1bd832831186e309afbec60ac1ed0200564 (diff) | |
parent | 9642eedc0a6d90d9502658a6569518741eea9ef3 (diff) | |
download | cpython-5d1110a952ee9551b249bcd4dd1f3d3bc21371b8.zip cpython-5d1110a952ee9551b249bcd4dd1f3d3bc21371b8.tar.gz cpython-5d1110a952ee9551b249bcd4dd1f3d3bc21371b8.tar.bz2 |
merge from 3.5
Issue #26892: Honor debuglevel flag in urllib.request.HTTPHandler.
Patch contributed by Chi Hsuan Yen.
Diffstat (limited to 'Lib/urllib/request.py')
-rw-r--r-- | Lib/urllib/request.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index c519c2d..4373c26 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -1271,6 +1271,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() |