mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
merge from 3.5
Issue #26892: Honor debuglevel flag in urllib.request.HTTPHandler. Patch contributed by Chi Hsuan Yen.
This commit is contained in:
commit
5d1110a952
3 changed files with 13 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue