git @ Cat's Eye Technologies yastasoti / f8922c0
Follow redirects in link checker. Chris Pressey 1 year, 10 months ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
135135
136136 class LinkChecker(LinkTraverser):
137137 def handle_link(self, url):
138 response = requests.head(url)
138 response = requests.head(url, allow_redirects=True)
139139 return {
140 'url': response.url,
140141 'status_code': response.status_code
141142 }
142143