From: Ruxandra Burtica Date: Tue, 8 Apr 2014 14:24:21 +0000 (+0300) Subject: Stream - add all parameters to the URL when making UserStream requests. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=71771b0d34b6ce94af0ac142676d5b0a2b4ec07c;p=tweepy.git Stream - add all parameters to the URL when making UserStream requests. --- diff --git a/tweepy/streaming.py b/tweepy/streaming.py index b37d0ed..ede67e7 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -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):