libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit d147ab196d6bed1e0b48b8925ad2da4cac04f0a1
parent d14fc3b3d7e4b3a55e85bab2bd2d9895d0543933
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu, 28 Apr 2022 19:05:24 +0300

response: fixed copy-paste error introduced by b8e13a57a0035f1f416d593d64115bd4417c2028

Diffstat:
Msrc/microhttpd/response.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c @@ -274,7 +274,8 @@ add_response_header_connection (struct MHD_Response *response, mhd_assert (0 <= norm_len_s); if (0 > norm_len_s) norm_len = 0; /* Must never happen */ - norm_len = (size_t) norm_len; + else + norm_len = (size_t) norm_len_s; } #ifdef UPGRADE_SUPPORT if ( (NULL != response->upgrade_handler) && value_has_close)