commit 65a331c7f65b500ac45d7f33cfffec32d065bf74
parent fa7725b9f4c3d644839a2230dbe11ec0c7b5d471
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date: Sun, 2 Nov 2025 19:28:11 +0100
respond_with_error: fixed logging empty-body responses
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mhd2/respond_with_error.c b/src/mhd2/respond_with_error.c
@@ -116,7 +116,8 @@ respond_with_error_len (struct MHD_Connection *c,
MHD_SC_REQ_PROCCESSING_ERR_REPLY,
mhd_LOG_FMT ("Error processing request. Sending %u " \
"error reply: %s"),
- (unsigned int) http_code, msg);
+ (unsigned int) http_code,
+ (NULL != msg) ? msg : "[EMPTY BODY]");
if (NULL != c->rp.response)
{