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: {} }