Fix hanging indefinitely while making auth-related requests (#117)

This commit is contained in:
L1LxHa 2019-01-05 01:22:42 +00:00 committed by Ammar Askar
parent b4c58477f4
commit 9b43d6f004
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ def _make_request(server, endpoint, data):
A `requests.Request` object.
"""
res = requests.post(server + "/" + endpoint, data=json.dumps(data),
headers=HEADERS)
headers=HEADERS, timeout=15)
return res