If the restconf-strict-headers parameter for netconfd-pro

is set to 'true' the server will only accept requests with
normative Accept and Content-Type header entries specified

in the RFC 8040. The Accept header must not
be empty; otherwise 'not acceptable' error will be
returned. 


Normative Accept header:
 application/yang-data+xml,application/yang-data+json;q=0.9


Normative Content-Type header:
 application/yang-data+xml
 application/yang-patch+json


If set to 'false', the server will try to accept not normative header entries.


Acceptable not normative Accept headers:

 application/xml,application/json;q=0.9


Acceptable not normative Content-Type headers:
 application/xml
 application/json
 text/xml

The default is false.


The restconf-strict-headers can be invoked via the command line when starting netconfd-pro: 


user@system>netconfd-pro --restconf-strict-headers=true


or configured in the /etc/yumapro/netconfd-pro.conf file:


#### leaf restconf-strict-headers

#

# If set to 'true' the server will only accept requests
# with normative Accept and Content-Type headers entries
# specified in the RFC 8040.
# The Accept header must not be empty; otherwise
# 'not acceptable' error will be returned.
#
#  Normative Accept header:
#   application/yang-data+xml,application/yang-data+json;q=0.9
#
#  Normative Content-Type header:
#   application/yang-data+xml
#   application/yang-patch+json
#
# If set to 'false', the server will try to accept
# not normative header entries.
#
#  Acceptable not normative Accept header:
#   application/xml,application/json;q=0.9
#
#  Acceptable not normative Content-Type headers:
#   application/xml
#   application/json
#   text/xml
#
#    The default is false.
#
# restconf-strict-headers false
#

restconf-strict-headers true