Http data server Fixed binary data retrieval
This commit is contained in:
parent
90474d1523
commit
7452813da7
7 changed files with 28 additions and 13 deletions
|
|
@ -329,7 +329,10 @@ restconf_http1_reply(restconf_conn *rc,
|
|||
cprintf(sd->sd_outp_buf, "\r\n");
|
||||
/* Write a body */
|
||||
if (sd->sd_body){
|
||||
cbuf_append_str(sd->sd_outp_buf, cbuf_get(sd->sd_body));
|
||||
if (cbuf_append_buf(sd->sd_outp_buf, cbuf_get(sd->sd_body), cbuf_len(sd->sd_body)) < 0){
|
||||
clicon_err(OE_RESTCONF, errno, "cbuf_append_buf");
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
retval = 0;
|
||||
done:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue