* Fixed: Some native restconf error messages did not end with \r\n.
* Specifically the error when sending http request on https.
This commit is contained in:
parent
c35ca82083
commit
6e0e45aab7
1 changed files with 1 additions and 1 deletions
|
|
@ -647,7 +647,7 @@ send_badrequest(clicon_handle h,
|
|||
cprintf(cb, "HTTP/1.1 400 Bad Request\r\nConnection: close\r\n");
|
||||
if (body){
|
||||
cprintf(cb, "Content-Type: %s\r\n", media);
|
||||
cprintf(cb, "Content-Length: %zu\r\n", strlen(body));
|
||||
cprintf(cb, "Content-Length: %zu\r\n", strlen(body)+2); /* for \r\n */
|
||||
}
|
||||
else
|
||||
cprintf(cb, "Content-Length: 0\r\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue