Skip to content

Commit

Permalink
Add timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Máté Rácz committed Sep 26, 2014
1 parent e0fc3db commit 921a1fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/apiRequest.js
Expand Up @@ -14,12 +14,14 @@ module.exports = function (params, url, callback) {
if(typeof callback !== 'function') {
return request({
url: url,
timeout: 60000,
qs: params
});
}

return request({
url: url,
timeout: 60000,
// headers: {
// 'Accept-Encoding': 'gzip'
// },
Expand Down

0 comments on commit 921a1fb

Please sign in to comment.