Skip to content

Commit

Permalink
try to not deduplicate requests coming from empty redirections (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
boogheta committed Nov 3, 2021
1 parent 5075f5a commit 378a6c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyphe_backend/crawler/hcicrawler/spiders/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def handle_response(self, response):
response.meta['depth'] -= 1
else:
response.meta['depth'] = -1
return self._request(redir_url, redirection=True)
return self._request(redir_url, redirection=True, dont_filter=(not response.status))
real_url = self.archiveregexp.sub("", redir_url)
orig_url = self.archiveregexp.sub("", response.url)
match = self.archiveregexp.search(redir_url)
Expand Down

0 comments on commit 378a6c2

Please sign in to comment.