Permalink
Browse files

add search rest_base

in case we are searching
  • Loading branch information...
pinguxx committed Jan 14, 2012
1 parent 3171aea commit c839e4cc8a16f1bee9471c54dd2784827c82e30a
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/twitter_client.js
View
@@ -57,8 +57,12 @@ module.exports = function (key, secret) {
}
if (method.toUpperCase() === 'GET') {
+ var base = _rest_base;
+ if (path.search("/search") > -1){
+ base = "http://search.twitter.com";
+ }
return CLIENT.oauth.get(
- _rest_base + path + '?' + querystring.stringify(params)
+ base + path + '?' + querystring.stringify(params)
, token.oauth_token
, token.oauth_token_secret
, requestCallback(callback)

0 comments on commit c839e4c

Please sign in to comment.