From 54b29355379ead6d73d74591a0e3f0c7b18b61fb Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Tue, 6 May 2014 19:10:46 -0400 Subject: [PATCH] Fix streaming headers in filter() --- tweepy/streaming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index dab8ec3..698e15a 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -291,7 +291,7 @@ class Stream(object): def filter(self, follow=None, track=None, async=False, locations=None, stall_warnings=False, languages=None, encoding='utf8'): self.session.params = {} - self.headers['Content-type'] = "application/x-www-form-urlencoded" + self.session.headers['Content-type'] = "application/x-www-form-urlencoded" if self.running: raise TweepError('Stream object already connected!') self.url = '/%s/statuses/filter.json' % STREAM_VERSION -- 2.25.1