* Fixed typo: [False Header Content_type in restconf error #152](https://github.com/clicon/clixon/issues/152)
This commit is contained in:
parent
c32950c8a9
commit
6810472a42
2 changed files with 2 additions and 1 deletions
|
|
@ -72,6 +72,7 @@ Developers may need to change their code
|
||||||
|
|
||||||
### Corrected Bugs
|
### 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
|
* 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)
|
* 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)
|
* Fixed [Clixon backend generates wrong XML on empty string value #144](https://github.com/clicon/clixon/issues/144)
|
||||||
|
|
|
||||||
|
|
@ -427,7 +427,7 @@ api_return_err(clicon_handle h,
|
||||||
if ((code = restconf_err2code(tagstr)) < 0)
|
if ((code = restconf_err2code(tagstr)) < 0)
|
||||||
code = 500; /* internal server error */
|
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;
|
goto done;
|
||||||
switch (media){
|
switch (media){
|
||||||
case YANG_DATA_XML:
|
case YANG_DATA_XML:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue