From 9b43d6f0044b250f3f3a5a25ea84da05d22db75f Mon Sep 17 00:00:00 2001 From: L1LxHa <45406306+L1LxHa@users.noreply.github.com> Date: Sat, 5 Jan 2019 01:22:42 +0000 Subject: [PATCH] Fix hanging indefinitely while making auth-related requests (#117) --- minecraft/authentication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minecraft/authentication.py b/minecraft/authentication.py index 112bc49..e0135fd 100644 --- a/minecraft/authentication.py +++ b/minecraft/authentication.py @@ -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