* autotools: removed warning of HAVE_HTTP1 by adding doc-string

* NETCONF 1.1 capability: removed extra, redundant conditional
This commit is contained in:
Olof hagsand 2022-04-03 12:43:54 +02:00
parent 1a9def2f6e
commit aaf8dee44f
4 changed files with 7 additions and 7 deletions

View file

@ -1701,8 +1701,7 @@ netconf_hello_server(clicon_handle h,
/* Each peer MUST send at least the base NETCONF capability, "urn:ietf:params:netconf:base:1.1"
* RFC 6241 Sec 8.1
*/
if (clicon_option_int(h, "CLICON_NETCONF_BASE_CAPABILITY") > 0) /* RFC 6241 */
cprintf(cb, "<capability>%s</capability>", NETCONF_BASE_CAPABILITY_1_1);
cprintf(cb, "<capability>%s</capability>", NETCONF_BASE_CAPABILITY_1_1);
}
/* A peer MAY include capabilities for previous NETCONF versions, to indicate
that it supports multiple protocol versions. */