Permalink
Browse files

Merge pull request #20 from stevenewey/master

Stream param list exceeds URL length
  • Loading branch information...
jdub committed Mar 4, 2012
2 parents 3975437 + b4d7366 commit 69ee7852d67d71109c55eec318cdbe164c719b98
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/twitter.js
View
@@ -40,7 +40,7 @@ function Twitter(options) {
rest_base: 'https://api.twitter.com/1',
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',
site_stream_base: 'http://sitestream.twitter.com/2b',
@@ -209,9 +209,10 @@ Twitter.prototype.stream = function(method, params, callback) {
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_secret);
+ this.options.access_token_secret,
+ params);
var stream = new streamparser();
stream.destroy = function() {

0 comments on commit 69ee785

Please sign in to comment.