From 71771b0d34b6ce94af0ac142676d5b0a2b4ec07c Mon Sep 17 00:00:00 2001 From: Ruxandra Burtica Date: Tue, 8 Apr 2014 17:24:21 +0300 Subject: [PATCH] Stream - add all parameters to the URL when making UserStream requests. --- tweepy/streaming.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): -- 2.25.1