release: version 1.0.13 - Fix duplicate comma in JSON output

- FIX: Remove trailing comma after query field (was causing ,, before host)
- FIX: Copy null terminator during buffer reallocation in dynbuf_append
- PACKAGING: Config file marked as %config(noreplace)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
Jacquin Antoine
2026-03-02 23:48:38 +01:00
parent 64c3e4acd8
commit 887318ba89
2 changed files with 5 additions and 5 deletions

View File

@ -791,7 +791,7 @@ static void log_request(request_rec *r, reqin_log_config_t *cfg, reqin_log_child
/* query (query string without leading ?, e.g., foo=bar) */
dynbuf_append(&buf, "\"query\":\"", 9);
append_json_string(&buf, query);
dynbuf_append(&buf, "\",", 2);
dynbuf_append(&buf, "\"", 1);
/* host */
dynbuf_append(&buf, ",\"host\":\"", 9);