mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-12-22 16:48:33 +01:00
Fix hanging indefinitely while making auth-related requests (#117)
This commit is contained in:
parent
b4c58477f4
commit
9b43d6f004
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user