From 1165bd667f392f104531f03a730e4d018cd059ae Mon Sep 17 00:00:00 2001 From: Sjors Hettinga Date: Fri, 18 Mar 2022 11:23:41 +0100 Subject: [PATCH] net: http: Allow a content_len of 4GB Instead of maximally 99999 bytes allow a content_len of 4GB. Signed-off-by: Sjors Hettinga --- subsys/net/lib/http/http_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/net/lib/http/http_client.c b/subsys/net/lib/http/http_client.c index 7ba9a5dfe1f..f84b8a76799 100644 --- a/subsys/net/lib/http/http_client.c +++ b/subsys/net/lib/http/http_client.c @@ -26,7 +26,7 @@ LOG_MODULE_REGISTER(net_http, CONFIG_NET_HTTP_LOG_LEVEL); #include "net_private.h" -#define HTTP_CONTENT_LEN_SIZE 6 +#define HTTP_CONTENT_LEN_SIZE 11 #define MAX_SEND_BUF_LEN 192 static int sendall(int sock, const void *buf, size_t len)