diff options
author | Greg Ward <gward@python.net> | 2002-02-11 20:46:10 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2002-02-11 20:46:10 (GMT) |
commit | 2e250b4378dbfbd2892d215d6add14cc91e2482a (patch) | |
tree | 2f479eb8915c748dd158bb0e58169e8a0e04fbf6 /Lib/urllib2.py | |
parent | aeff6687b5fced2d7617aa6bd6a6388dbfa66c51 (diff) | |
download | cpython-2e250b4378dbfbd2892d215d6add14cc91e2482a.zip cpython-2e250b4378dbfbd2892d215d6add14cc91e2482a.tar.gz cpython-2e250b4378dbfbd2892d215d6add14cc91e2482a.tar.bz2 |
Fix bug #511786 (2.2.1 candidate): ensure that custom-supplied headers
are preserved for redirected requests.
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r-- | Lib/urllib2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py index ffd73b8..512d90c 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -416,7 +416,7 @@ class HTTPRedirectHandler(BaseHandler): # XXX Probably want to forget about the state of the current # request, although that might interact poorly with other # handlers that also use handler-specific request attributes - new = Request(newurl, req.get_data()) + new = Request(newurl, req.get_data(), req.headers) new.error_302_dict = {} if hasattr(req, 'error_302_dict'): if len(req.error_302_dict)>10 or \ |