From f0d74f971a48546aaafbbd79fe9dd5295dc63758 Mon Sep 17 00:00:00 2001 From: Janez K Date: Sat, 12 Apr 2014 09:18:43 +0200 Subject: [PATCH] also return headers with the content so that x-rate-limit-remaining can be accessed --- twython/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/twython/api.py b/twython/api.py index 1d23a35..aa75ddb 100644 --- a/twython/api.py +++ b/twython/api.py @@ -182,6 +182,7 @@ class Twython(EndpointsMixin, object): except ValueError: raise TwythonError('Response was not valid JSON. Unable to decode.') + content['headers']=dict(response.headers) return content def _get_error_message(self, response):