message: bug: Fix 'removed endpoint headers' bug
diff: @@ -107,18 +107,19 @@ module.exports = {
  // endpoint
  if (_.get(config, 'endpoint')) {
  // create basic https endpoint from wildcard ssl
  + let url = '';
  if (_.isString(_.get(config, 'endpoint'))) {
  - _.set(agent, 'webhook', {
  - url: Helper.Project.getEndpointFromConfig(_.get(config, 'endpoint')),
  - available: true,
  - });
  + url = Helper.Project.getEndpointFromConfig(_.get(config, 'endpoint'));
  } else if (_.isObject(_.get(config, 'endpoint')) && _.get(config, 'endpoint.googleAction.dialogFlow')) {
  - _.set(agent, 'webhook', {
  - url: Helper.Project.getEndpointFromConfig(_.get(config, 'endpoint.googleAction.dialogFlow')),
  + url = Helper.Project.getEndpointFromConfig(_.get(config, 'endpoint.googleAction.dialogFlow'));
  + }
  + _.merge(agent, {
  + 'webhook': {
  + url: url,
  available: true,
  + },
  });
  }
  - }
  // setup languages
  