From: Felix Fietkau Date: Thu, 3 Jan 2013 00:03:17 +0000 (+0100) Subject: use a better error code for unsupported expect headers X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuhttpd.git;a=commitdiff_plain;h=0a6fa62baa6d21455485bc6669f4e5f3b6608487;hp=c92b8cb32d10559791e7bd4937ecc5f49a45ba9d use a better error code for unsupported expect headers --- diff --git a/client.c b/client.c index 8604034..4d8b17b 100644 --- a/client.c +++ b/client.c @@ -228,7 +228,7 @@ static void client_parse_header(struct client *cl, char *data) if (!strcasecmp(val, "100-continue")) cl->request.expect_cont = true; else { - uh_header_error(cl, 400, "Bad Request"); + uh_header_error(cl, 412, "Precondition Failed"); return; } }