From 1ccd4161c7b525bb5efb444232ffe7f15c590d60 Mon Sep 17 00:00:00 2001 From: Milo Mordaunt Date: Thu, 24 Sep 2015 15:53:41 -0300 Subject: [PATCH] Added defaults.timeout to default config. --- lib/axios.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/axios.js b/lib/axios.js index e29e9eb..ca9ba15 100644 --- a/lib/axios.js +++ b/lib/axios.js @@ -9,6 +9,7 @@ var axios = module.exports = function (config) { config = utils.merge({ method: 'get', headers: {}, + timeout: defaults.timeout, transformRequest: defaults.transformRequest, transformResponse: defaults.transformResponse }, config);