From 8eb393a5d1bae1c850a299529787b55933686047 Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Wed, 10 May 2017 13:05:25 -0500 Subject: [PATCH] [console] Properly check for existence of deprecated console configs (#11670) (#11694) --- src/core_plugins/console/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core_plugins/console/index.js b/src/core_plugins/console/index.js index 6813871dd4909..8f6e2f6c48295 100644 --- a/src/core_plugins/console/index.js +++ b/src/core_plugins/console/index.js @@ -2,7 +2,7 @@ import Boom from 'boom'; import apiServer from './api_server/server'; import { existsSync } from 'fs'; import { resolve, join, sep } from 'path'; -import { has } from 'lodash'; +import { has, isEmpty } from 'lodash'; import { ProxyConfigCollection, @@ -85,7 +85,7 @@ export default function (kibana) { const whitelist = config.get('elasticsearch.requestHeadersWhitelist'); const headers = filterHeaders(req.headers, whitelist); - if (config.has('console.proxyConfig')) { + if (!isEmpty(config.get('console.proxyConfig'))) { return { ...proxyConfigCollection.configForUri(uri), headers,