Fix streaming headers in filter()
authorAaron Hill <aa1ronham@gmail.com>
Tue, 6 May 2014 23:10:46 +0000 (19:10 -0400)
committerAaron Hill <aa1ronham@gmail.com>
Tue, 6 May 2014 23:10:46 +0000 (19:10 -0400)
tweepy/streaming.py

index dab8ec331471cd5b526687d4b22caa6c57d5d2d8..698e15a442e534711e29cfbf9832b582e551e22a 100644 (file)
@@ -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