net: http: One extra byte was sent in last chunk
There was one extra byte sent in last chunk which caused this error to be printed by curl * Illegal or missing hexadecimal sequence in chunked-encoding * stopped the pause stream! * Closing connection 0 curl: (56) Illegal or missing hexadecimal sequence in chunked-encoding Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
993c349a8a
commit
355d58b0d0
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ int http_send_chunk(struct http_ctx *ctx, const char *buf, size_t len,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = http_prepare_and_send(ctx, HTTP_CRLF, sizeof(HTTP_CRLF), dst,
|
ret = http_prepare_and_send(ctx, HTTP_CRLF, sizeof(HTTP_CRLF) - 1, dst,
|
||||||
user_send_data);
|
user_send_data);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue