mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-11-22 10:15:55 +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.
|
A `requests.Request` object.
|
||||||
"""
|
"""
|
||||||
res = requests.post(server + "/" + endpoint, data=json.dumps(data),
|
res = requests.post(server + "/" + endpoint, data=json.dumps(data),
|
||||||
headers=HEADERS)
|
headers=HEADERS, timeout=15)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user