Skip to content

Commit

Permalink
Link existence checking should follow redirects (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
tetron authored Oct 16, 2021
1 parent 7e19daa commit 2274c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema_salad/fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def check_exists(self, url: str) -> bool:

if scheme in ["http", "https"] and self.session is not None:
try:
resp = self.session.head(url)
resp = self.session.head(url, allow_redirects=True)
resp.raise_for_status()
except Exception:
return False
Expand Down

0 comments on commit 2274c96

Please sign in to comment.