* Fixed typo: [False Header Content_type in restconf error #152](https://github.com/clicon/clixon/issues/152)

This commit is contained in:
Olof hagsand 2020-12-01 12:58:07 +01:00
parent c32950c8a9
commit 6810472a42
2 changed files with 2 additions and 1 deletions

View file

@ -72,6 +72,7 @@ Developers may need to change their code
### Corrected Bugs
* Fixed typo: [False Header Content_type in restconf error #152](https://github.com/clicon/clixon/issues/152)
* Added message-id attributes in error and hello replies
* See [namespace prefix nc is not supported in full #154](https://github.com/clicon/clixon/issues/154)
* Fixed [Clixon backend generates wrong XML on empty string value #144](https://github.com/clicon/clixon/issues/144)

View file

@ -427,7 +427,7 @@ api_return_err(clicon_handle h,
if ((code = restconf_err2code(tagstr)) < 0)
code = 500; /* internal server error */
}
if (restconf_reply_header(req, "Content_Type", "%s", restconf_media_int2str(media)) < 0)
if (restconf_reply_header(req, "Content-Type", "%s", restconf_media_int2str(media)) < 0) // XXX
goto done;
switch (media){
case YANG_DATA_XML: