httpd: remove unnecessary "\0" suffix for CRLF string constant (see bug #51232)

This commit is contained in:
goldsimon 2017-06-13 21:53:35 +02:00
parent ef5e44b2d3
commit 07cc25a9df

View File

@ -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;