Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change all base URLs to use https

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...
commit 01c2569157d99b362ffc8bbea77b4bbda9c62932 1 parent 3975437
@christopherwright christopherwright authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/twitter.js
View
6 lib/twitter.js
@@ -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',
Please sign in to comment.
Something went wrong with that request. Please try again.