Skip to content

Commit

Permalink
[fix] Set timeout to 8 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Aug 15, 2012
1 parent 420904f commit b6567a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions node.js/lib/client/client.js
Expand Up @@ -69,6 +69,7 @@ Client.prototype._request = function (options, callback, success) {
options.uri = this.remoteUri + options.path;
options.headers = options.headers || {};
options.headers['content-type'] = options.headers['content-type'] || 'application/json';
options.timeout = 8 * 60 * 1000;

if (options.headers['content-type'] === 'application/json'
&& options.body) {
Expand Down

0 comments on commit b6567a1

Please sign in to comment.