* Restconf native HTTP/2:
* Added option `CLICON_RESTCONF_HTTP2_PLAIN`
* if disabled non-tls HTTP/2 is disabled: both direct and upgrade
This commit is contained in:
parent
562320dcbc
commit
ef4d082f4b
6 changed files with 240 additions and 5 deletions
|
|
@ -430,7 +430,8 @@ evhtp_upgrade_http2(clicon_handle h,
|
|||
char *settings;
|
||||
cxobj *xerr = NULL;
|
||||
|
||||
if ((str = restconf_param_get(h, "HTTP_UPGRADE")) != NULL){
|
||||
if ((str = restconf_param_get(h, "HTTP_UPGRADE")) != NULL &&
|
||||
clicon_option_bool(h, "CLICON_RESTCONF_HTTP2_PLAIN") == 1){
|
||||
/* Only accept "h2c" */
|
||||
if (strcmp(str, "h2c") != 0){
|
||||
if (netconf_invalid_value_xml(&xerr, "protocol", "Invalid upgrade token") < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue