From d965efae3a684a3caa279088e095febef113d2fa Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Thu, 30 May 2019 13:01:27 +0430 Subject: [PATCH] fix: handle false timeout --- lib/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugin.js b/lib/plugin.js index d44e93f..a364fb2 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -95,7 +95,7 @@ export default (ctx, inject) => { // Defaults const defaults = { retry: <%= parseInt(options.retry) %>, - timeout: process.server ? <%= parseInt(options.serverTimeout) %> : <%= parseInt(options.clientTimeout) %>, + timeout: process.server ? <%= options.serverTimeout %> : <%= options.clientTimeout %>, prefixUrl, headers: {} }