diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ab8428e..500ebf44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/apps/restconf/restconf_err.c b/apps/restconf/restconf_err.c index 6e38891a..8839b878 100644 --- a/apps/restconf/restconf_err.c +++ b/apps/restconf/restconf_err.c @@ -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: