Skip to content

Commit

Permalink
[console] Properly check for existence of deprecated console configs (e…
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz authored and snide committed May 30, 2017
1 parent a42c4cd commit 777a906
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core_plugins/console/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 777a906

Please sign in to comment.