net: lib: http: chunked encoding body support
We should not ignore the body when the Transfer-Encoding is chunked. Signed-off-by: Jackie Ja <qazq.jackie@gmail.com>
This commit is contained in:
parent
f07a9691ed
commit
fac4a6a4fe
1 changed files with 0 additions and 6 deletions
|
@ -314,12 +314,6 @@ static int on_headers_complete(struct http_parser *parser)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((req->method == HTTP_PUT || req->method == HTTP_POST) &&
|
|
||||||
req->internal.response.content_length == 0) {
|
|
||||||
NET_DBG("No body expected");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
NET_DBG("Headers complete");
|
NET_DBG("Headers complete");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue