From 15274cbee17b7b300ad699b07f592ee6d9969a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20Anders=20Ljusb=C3=A4ck?= Date: Thu, 18 Apr 2019 18:04:44 +0200 Subject: [PATCH] fix: correctly handle `proxyHeaders: false` (#17) --- lib/plugin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/plugin.js b/lib/plugin.js index 8773e3e..1c27f8a 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -96,7 +96,8 @@ export default (ctx, inject) => { // Defaults const defaults = { retry: <%= parseInt(options.retry) %>, - prefixUrl + prefixUrl, + headers: {} } <% if (options.proxyHeaders) { %>