also return headers with the content so that x-rate-limit-remaining can be accessed

This commit is contained in:
Janez K 2014-04-12 09:18:43 +02:00
parent 10e60fca10
commit f0d74f971a

View file

@ -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):