Woah, how the hell did we never notice this before? Set headers on the instance, not as a generic variable...
This commit is contained in:
parent
435294e004
commit
d5c34779d9
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ class Twython(object):
|
||||||
# If there's headers, set them, otherwise be an embarassing parent for their own good.
|
# If there's headers, set them, otherwise be an embarassing parent for their own good.
|
||||||
self.headers = headers
|
self.headers = headers
|
||||||
if self.headers is None:
|
if self.headers is None:
|
||||||
headers = {'User-agent': 'Twython Python Twitter Library v1.3'}
|
self.headers = {'User-agent': 'Twython Python Twitter Library v1.3'}
|
||||||
|
|
||||||
consumer = None
|
consumer = None
|
||||||
token = None
|
token = None
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue