From e793c71958407bbffc7bee6b42d272eb9e6d30a6 Mon Sep 17 00:00:00 2001 From: Remoun Metyas Date: Mon, 8 Aug 2011 19:16:55 +0200 Subject: [PATCH] Honour timeout and allow_redirects in twilio.rest.resources.make_request --- twilio/rest/resources.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/twilio/rest/resources.py b/twilio/rest/resources.py index c8d771d4ea..cd4c7a0e5d 100644 --- a/twilio/rest/resources.py +++ b/twilio/rest/resources.py @@ -115,10 +115,10 @@ def make_request(method, url, See the requests documentation for explanation of all these parameters - Currently timeout, allow_redirects, proxies, files, and cookies - are all ignored + Currently proxies, files, and cookies are all ignored """ - http = httplib2.Http() + http = httplib2.Http(timeout=timeout) + http.follow_redirects = allow_redirects if auth is not None: http.add_credentials(auth[0], auth[1])