Index: Lib/urllib2.py =================================================================== --- Lib/urllib2.py (revisiĆ³n: 65710) +++ Lib/urllib2.py (copia de trabajo) @@ -1079,8 +1079,8 @@ h = http_class(host, timeout=req.timeout) # will parse host:port h.set_debuglevel(self._debuglevel) - headers = dict(req.headers) - headers.update(req.unredirected_hdrs) + headers = dict(req.unredirected_hdrs) + headers.update(req.headers) # We want to make an HTTP/1.1 request, but the addinfourl # class isn't prepared to deal with a persistent connection. # It will try to read all remaining data from the socket,