HTTP data server updates
Check of enable-http-data config option HTTP/2 Return 400 bad request if no path match Test: updated yang file revisions, extended restconf config with http-data
This commit is contained in:
parent
2a8cedf0c3
commit
404d05950a
10 changed files with 243 additions and 136 deletions
|
|
@ -786,6 +786,13 @@ restconf_config_init(clicon_handle h,
|
|||
else if (strcmp(bstr, "false") == 0)
|
||||
restconf_pretty_set(h, 0);
|
||||
}
|
||||
if ((x = xpath_first(xrestconf, nsc, "enable-http-data")) != NULL &&
|
||||
(bstr = xml_body(x)) != NULL){
|
||||
if (strcmp(bstr, "true") == 0)
|
||||
restconf_http_data_set(h, 1);
|
||||
else if (strcmp(bstr, "false") == 0)
|
||||
restconf_http_data_set(h, 0);
|
||||
}
|
||||
if ((x = xpath_first(xrestconf, nsc, "fcgi-socket")) != NULL &&
|
||||
(bstr = xml_body(x)) != NULL){
|
||||
if (restconf_fcgi_socket_set(h, bstr) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue