From 278f7a19dd4fbe1eb82448fdd7ac056dc42724ac Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Sat, 30 Dec 2017 11:05:31 +0800 Subject: [PATCH] Perfect response error hints Signed-off-by: Jianhui Zhao --- src/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.c b/src/client.c index a96eb23..7923d68 100755 --- a/src/client.c +++ b/src/client.c @@ -330,7 +330,7 @@ static void client_parse_header(struct uh_client *cl, char *data) if (!strcmp(data, "content-length")) { r->content_length = strtoul(val, &err, 0); if (err && *err) { - cl->send_error(cl, 400, "Bad Request", NULL); + cl->send_error(cl, 400, "Bad Request", "Invalid Content-Length"); return; } } else if (!strcmp(data, "transfer-encoding") && !strcmp(val, "chunked")) {