Index: urllib2.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/urllib2.py,v retrieving revision 1.81 diff -u -r1.81 urllib2.py --- urllib2.py 6 Feb 2005 06:57:08 -0000 1.81 +++ urllib2.py 7 Feb 2005 00:15:24 -0000 @@ -523,9 +523,9 @@ # Some servers (incorrectly) return multiple Location headers # (so probably same goes for URI). Use first header. if 'location' in headers: - newurl = headers.getheaders('location')[0] + newurl = headers.get('location') elif 'uri' in headers: - newurl = headers.getheaders('uri')[0] + newurl = headers.get('uri') else: return newurl = urlparse.urljoin(req.get_full_url(), newurl)