use urlopen timeout

This commit is contained in:
Jannes Höke 2016-07-04 21:40:31 +02:00
parent ecbc268781
commit 89a3dc8372

View file

@ -171,7 +171,8 @@ def post(url, data, timeout=None):
result = _request_wrapper('POST', result = _request_wrapper('POST',
url, url,
body=data.encode(), body=data.encode(),
headers={'Content-Type': 'application/json'}) headers={'Content-Type': 'application/json'},
**urlopen_kwargs)
return _parse(result) return _parse(result)