Controller: more HTTP headers and detailed JSON parsing errors.

This commit is contained in:
Valentin Bartenev
2017-08-11 19:54:40 +03:00
parent 8bb88aaf51
commit 80deee3903
5 changed files with 587 additions and 169 deletions

View File

@@ -661,7 +661,7 @@ nxt_router_conf_create(nxt_task_t *task, nxt_router_temp_conf_t *tmcf,
static nxt_str_t applications_path = nxt_string("/applications");
static nxt_str_t listeners_path = nxt_string("/listeners");
conf = nxt_conf_json_parse(tmcf->mem_pool, start, end);
conf = nxt_conf_json_parse(tmcf->mem_pool, start, end, NULL);
if (conf == NULL) {
nxt_log(task, NXT_LOG_CRIT, "configuration parsing error");
return NXT_ERROR;