Skip to content
This repository has been archived by the owner on Aug 25, 2018. It is now read-only.

Commit

Permalink
Merge pull request #20 from stevenewey/master
Browse files Browse the repository at this point in the history
Stream param list exceeds URL length
  • Loading branch information
jdub committed Mar 4, 2012
2 parents 3975437 + b4d7366 commit 69ee785
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/twitter.js
Expand Up @@ -40,7 +40,7 @@ function Twitter(options) {


rest_base: 'https://api.twitter.com/1', rest_base: 'https://api.twitter.com/1',
search_base: 'http://search.twitter.com', search_base: 'http://search.twitter.com',
stream_base: 'http://stream.twitter.com/1', stream_base: 'https://stream.twitter.com/1',
user_stream_base: 'https://userstream.twitter.com/2', user_stream_base: 'https://userstream.twitter.com/2',
site_stream_base: 'http://sitestream.twitter.com/2b', site_stream_base: 'http://sitestream.twitter.com/2b',


Expand Down Expand Up @@ -209,9 +209,10 @@ Twitter.prototype.stream = function(method, params, callback) {


var url = stream_base + '/' + escape(method) + '.json'; var url = stream_base + '/' + escape(method) + '.json';


var request = this.oauth.post(url + '?' + querystring.stringify(params), var request = this.oauth.post(url,
this.options.access_token_key, this.options.access_token_key,
this.options.access_token_secret); this.options.access_token_secret,
params);


var stream = new streamparser(); var stream = new streamparser();
stream.destroy = function() { stream.destroy = function() {
Expand Down

0 comments on commit 69ee785

Please sign in to comment.