diff --git a/lib/twitter_client.js b/lib/twitter_client.js index 0a249b7..29e39fb 100644 --- a/lib/twitter_client.js +++ b/lib/twitter_client.js @@ -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)