diff --git a/index.js b/index.js index 40284b0..ab1643e 100644 --- a/index.js +++ b/index.js @@ -324,7 +324,9 @@ function setDefaults(defs) { 'timeout', 'setHost' ].forEach(function (key) { - finalOpts[key] = opts.uri[key]; + if (key in opts) { + finalOpts[key] = opts[key]; + } }); finalOpts.method = opts.method;