diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2016-05-13 01:32:42 -0700 |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2016-05-13 01:32:42 -0700 |
commit | 9642eedc0a6d90d9502658a6569518741eea9ef3 (patch) | |
tree | b148ccc6a8942cb968ab80edbd7711be2ec7e3da /Lib/urllib/request.py | |
parent | c76358924f5d750460f8693c05987dd866cb9e8a (diff) | |
download | cpython-git-9642eedc0a6d90d9502658a6569518741eea9ef3.tar.gz |
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 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() |