also return headers with the content so that x-rate-limit-remaining can be accessed
This commit is contained in:
parent
10e60fca10
commit
f0d74f971a
1 changed files with 1 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue