diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2016-05-13 08:32:42 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2016-05-13 08:32:42 (GMT) |
commit | 9642eedc0a6d90d9502658a6569518741eea9ef3 (patch) | |
tree | b148ccc6a8942cb968ab80edbd7711be2ec7e3da /Lib/urllib | |
parent | c76358924f5d750460f8693c05987dd866cb9e8a (diff) | |
download | cpython-9642eedc0a6d90d9502658a6569518741eea9ef3.zip cpython-9642eedc0a6d90d9502658a6569518741eea9ef3.tar.gz cpython-9642eedc0a6d90d9502658a6569518741eea9ef3.tar.bz2 |
Issue #26892: Honor debuglevel flag in urllib.request.HTTPHandler.
Patch contributed by Chi Hsuan Yen.
Diffstat (limited to 'Lib/urllib')
-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 b28cd60..5f40729 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() |