From fac4a6a4fed3149fdc2fa7905a9e20812a0fe13c Mon Sep 17 00:00:00 2001 From: Jackie Ja Date: Wed, 7 Oct 2020 18:00:30 +0800 Subject: [PATCH] net: lib: http: chunked encoding body support We should not ignore the body when the Transfer-Encoding is chunked. Signed-off-by: Jackie Ja --- subsys/net/lib/http/http_client.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/subsys/net/lib/http/http_client.c b/subsys/net/lib/http/http_client.c index 9db3478e7f3..54bcf08a385 100644 --- a/subsys/net/lib/http/http_client.c +++ b/subsys/net/lib/http/http_client.c @@ -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;