aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-02-01 23:32:52 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2026-02-01 23:32:52 +0100
commitf11cea8ca663b4d10afec1161d023bb82de32506 (patch)
tree275e8895632b75ddc1c20ce14a878b7df3b92ec1
parent953210bd1930e1734f1acde86eadd7a1997bb7c3 (diff)
http.c: Write more debug infotest-mf
-rw-r--r--http.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/http.c b/http.c
index 6410192..17c8056 100644
--- a/http.c
+++ b/http.c
@@ -2310,8 +2310,10 @@ static int read_mf_body_boundary_byte(struct http_ctx *const h, const char b,
}
else
{
- fprintf(stderr, "%s: expected %hhx, got %hhx\n", __func__,
- c->boundary[m->blen], b);
+ fprintf(stderr, "%s: expected %hhx in position %zu, got %hhx. "
+ "Expected boundary: %s, received boundary: %.*s\n", __func__,
+ c->boundary[m->blen], m->blen, b, c->boundary, (int)m->blen,
+ m->boundary);
return 1;
}