mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Revert unneccessary changes made in bpo-30296 and apply other improvements. (GH-2624)
This commit is contained in:
parent
6f600ff173
commit
3f2e6f15d6
4 changed files with 6 additions and 5 deletions
|
|
@ -1286,7 +1286,8 @@ class AbstractHTTPHandler(BaseHandler):
|
|||
h.set_debuglevel(self._debuglevel)
|
||||
|
||||
headers = dict(req.unredirected_hdrs)
|
||||
headers.update((k, v) for k, v in req.headers.items() if k not in headers)
|
||||
headers.update({k: v for k, v in req.headers.items()
|
||||
if k not in headers})
|
||||
|
||||
# TODO(jhylton): Should this be redesigned to handle
|
||||
# persistent connections?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue