mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
httpd: remove unnecessary "\0" suffix for CRLF string constant (see bug #51232)
This commit is contained in:
parent
ef5e44b2d3
commit
07cc25a9df
@ -944,7 +944,7 @@ get_http_headers(struct http_state *hs, const char *uri)
|
||||
hs->handle->len);
|
||||
len = strlen(hs->hdr_content_len);
|
||||
if (len <= LWIP_HTTPD_MAX_CONTENT_LEN_SIZE - LWIP_HTTPD_MAX_CONTENT_LEN_OFFSET) {
|
||||
SMEMCPY(&hs->hdr_content_len[len], CRLF "\0", 3);
|
||||
SMEMCPY(&hs->hdr_content_len[len], CRLF, 3);
|
||||
hs->hdrs[HDR_STRINGS_IDX_CONTENT_LEN_NR] = hs->hdr_content_len;
|
||||
} else {
|
||||
add_content_len = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user