This commit is contained in:
Bastian Kleineidam 2014-07-01 21:12:47 +02:00
parent 9a124513e3
commit 1590ab6240

View file

@ -252,11 +252,9 @@ class HttpUrl (internpaturl.InternPatternUrl, proxysupport.ProxySupport):
self.aliases.append(newurl)
# XXX on redirect errors this is not printed
self.add_info(_("Redirected to `%(url)s'.") % {'url': newurl})
# Reset extern and recalculate
self.extern = None
self.set_extern(newurl)
self.urlparts = strformat.url_unicode_split(newurl)
self.build_url_parts()
self.url_connection = response
@ -266,7 +264,7 @@ class HttpUrl (internpaturl.InternPatternUrl, proxysupport.ProxySupport):
self._add_ssl_info()
self._add_response_info()
if self.is_redirect():
# run plugins for old connection
# run connection plugins for old connection
self.aggregate.plugin_manager.run_connection_plugins(self)
def getheader (self, name, default=None):