From 89a3dc8372ebd4bb689b338ce8536a7a46505328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Mon, 4 Jul 2016 21:40:31 +0200 Subject: [PATCH] use urlopen timeout --- telegram/utils/request.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telegram/utils/request.py b/telegram/utils/request.py index f801c54a3..8f23b6c05 100644 --- a/telegram/utils/request.py +++ b/telegram/utils/request.py @@ -171,7 +171,8 @@ def post(url, data, timeout=None): result = _request_wrapper('POST', url, body=data.encode(), - headers={'Content-Type': 'application/json'}) + headers={'Content-Type': 'application/json'}, + **urlopen_kwargs) return _parse(result)