From: Aaron Hill Date: Tue, 6 May 2014 23:10:46 +0000 (-0400) Subject: Fix streaming headers in filter() X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=54b29355379ead6d73d74591a0e3f0c7b18b61fb;p=tweepy.git Fix streaming headers in filter() --- 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