Stream - add all parameters to the URL when making UserStream requests.
authorRuxandra Burtica <ruxandra.burtica@gmail.com>
Tue, 8 Apr 2014 14:24:21 +0000 (17:24 +0300)
committerRuxandra Burtica <ruxandra.burtica@gmail.com>
Tue, 8 Apr 2014 14:24:21 +0000 (17:24 +0300)
tweepy/streaming.py

index b37d0edf3f510231087fb807ed270077b87ab4e4..ede67e77206cfd0128d3489aec1794bbfe6d3059 100644 (file)
@@ -245,7 +245,7 @@ class Stream(object):
         self.parameters = {'delimited': 'length'}
         if self.running:
             raise TweepError('Stream object already connected!')
-        self.url = '/%s/user.json?delimited=length' % STREAM_VERSION
+        self.url = '/%s/user.json' % STREAM_VERSION
         self.host='userstream.twitter.com'
         if stall_warnings:
             self.parameters['stall_warnings'] = stall_warnings
@@ -259,7 +259,9 @@ class Stream(object):
         if track:
             encoded_track = [s.encode(encoding) for s in track]
             self.parameters['track'] = ','.join(encoded_track)
+
         self.body = urlencode_noplus(self.parameters)
+        self.url = self.url + '?' + self.body
         self._start(async)
 
     def firehose(self, count=None, async=False):