chg: Add timeout for FOX module

pull/406/head
Raphaël Vinot 2022-05-02 13:57:37 +02:00
parent eaff6c81ee
commit bd62d62392
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class FOX():
url = f'http://{url}'
data = {'url': url}
response = self.client.post('https://ingestion.collaboration.cyber.gc.ca/v1/url', json=data)
response = self.client.post('https://ingestion.collaboration.cyber.gc.ca/v1/url', json=data, timeout=1)
response.raise_for_status()
return True