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

Commit

Permalink
Change all base URLs to use https
Browse files Browse the repository at this point in the history
The streaming API has turned SSL only, so if 'http' is used then the
connection is refused by Twitter. See
https://dev.twitter.com/blog/streaming-api-turning-ssl-only-september-29th
for more details.
  • Loading branch information
christopherwright committed Sep 30, 2011
1 parent 3975437 commit 01c2569
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/twitter.js
Expand Up @@ -39,10 +39,10 @@ function Twitter(options) {
authorize_url: 'https://api.twitter.com/oauth/authorize',

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

secure: false, // force use of https for login/gatekeeper
cookie: 'twauth',
Expand Down

0 comments on commit 01c2569

Please sign in to comment.