From 6c8874bf5dbfe3760e6a1e4d0b4ed64376e60137 Mon Sep 17 00:00:00 2001 From: Mike Kleshov Date: Fri, 21 Mar 2025 19:25:31 +0300 Subject: [PATCH] Apply patch #10047: HTTP11_CONNECTIONKEEPALIVE2 not needed any more --- src/apps/http/httpd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/apps/http/httpd.c b/src/apps/http/httpd.c index 3e9d2348..cf3abacf 100644 --- a/src/apps/http/httpd.c +++ b/src/apps/http/httpd.c @@ -120,7 +120,6 @@ #define CRLF "\r\n" #if LWIP_HTTPD_SUPPORT_11_KEEPALIVE #define HTTP11_CONNECTIONKEEPALIVE "Connection: keep-alive" -#define HTTP11_CONNECTIONKEEPALIVE2 "Connection: Keep-Alive" #endif #if LWIP_HTTPD_DYNAMIC_FILE_READ @@ -2100,8 +2099,7 @@ http_parse_request(struct pbuf *inp, struct http_state *hs, struct altcp_pcb *pc #if LWIP_HTTPD_SUPPORT_11_KEEPALIVE /* This is HTTP/1.0 compatible: for strict 1.1, a connection would always be persistent unless "close" was specified. */ - if (!is_09 && (lwip_strnistr(data, HTTP11_CONNECTIONKEEPALIVE, data_len) || - lwip_strnistr(data, HTTP11_CONNECTIONKEEPALIVE2, data_len))) { + if (!is_09 && lwip_strnistr(data, HTTP11_CONNECTIONKEEPALIVE, data_len)) { hs->keepalive = 1; } else { hs->keepalive = 0;