diff --git a/index.js b/index.js index 8a11b30..3e19516 100644 --- a/index.js +++ b/index.js @@ -132,8 +132,8 @@ exports.request = function (options, callback) { options['max-redirs'] = 3; } - //Add an additional setTimeout for max-time - if (options['max-time']) { + //Add an additional setTimeout for max-time (only if not in pretend mode) + if (options['max-time'] && options.pretend !== true) { timeout = setTimeout(function () { if (complete) return; stderr = 'timeout', stdout = null;