mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-18 05:11:00 +00:00
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:
parent
93ce3364b0
commit
82dee6ae52
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue