Skip to content

Commit

Permalink
fix: [hashlookup] set a default timeout for requests
Browse files Browse the repository at this point in the history
  • Loading branch information
adulau committed May 29, 2023
1 parent 54eff89 commit cab3251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/hashlookup-analyser.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def lookup(value=None):
return False

r = requests.get(
f'https://hashlookup.circl.lu/lookup/sha1/{value}', headers=headers
f'https://hashlookup.circl.lu/lookup/sha1/{value}', headers=headers, timeout=5
)
return r.json()

Expand Down

0 comments on commit cab3251

Please sign in to comment.