reintroduce the self.url updated, this time only for redirections but without a warning

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2542 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-04-26 17:51:15 +00:00
parent 93ce3364b0
commit 82dee6ae52

View file

@ -141,6 +141,10 @@ class HttpUrl (urlbase.UrlBase, proxysupport.ProxySupport):
self.method = "HEAD"
# check the http connection
response, fallback_GET = self.check_http_connection()
# redirections might have changed the URL
newurl = urlparse.urlunsplit(self.urlparts)
if self.url != newurl:
self.url = newurl
# check response
self.check_response(response, fallback_GET)