commit 909392cbc2c150c27ff723fae39c81c1b7ca930c
parent d799ddd2354c2b41507232580799a2598458b2e9
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 28 May 2026 21:04:12 +0200
add missing pos adjustment to avoid clobbering the special custom header with \r\n
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/mhd2/stream_process_reply.c b/src/mhd2/stream_process_reply.c
@@ -807,6 +807,7 @@ build_header_response_inn (struct MHD_Connection *restrict c)
memcpy (buf + pos,
r->special_resp.spec_hdr,
r->special_resp.spec_hdr_len);
+ pos += r->special_resp.spec_hdr_len;
buf[pos++] = '\r';
buf[pos++] = '\n';
}