Skip to content

Commit

Permalink
Better read and connect values, only 2 retries
Browse files Browse the repository at this point in the history
  • Loading branch information
OllieJC authored Feb 4, 2022
1 parent 3212196 commit 6e8aad3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions securitytxt.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
+ "http-equiv\s*?=\s*?['\"]?refresh.*?content\s*?=\s*?)"
+ "['\"](?:.*?\;)?(?:\s+)?(?:url\s*?=\s*?)?(?P<redirect>.+?)['\"]"
)
connect_timeout = 0.1
read_timeout = 3
connect_timeout = read_timeout = 3.05
retry_strategy = Retry(
total=3,
total=2,
backoff_factor=0.5,
status_forcelist=[429, 500, 502, 503, 504],
method_whitelist=["HEAD", "GET", "OPTIONS"]
Expand Down

0 comments on commit 6e8aad3

Please sign in to comment.