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:
Jackie Ja 2020-10-07 18:00:30 +08:00 committed by Jukka Rissanen
commit fac4a6a4fe

View file

@ -314,12 +314,6 @@ static int on_headers_complete(struct http_parser *parser)
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");
return 0;