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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user