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: https://git.librecmc.org/?a=commitdiff_plain;h=0a6fa62baa6d21455485bc6669f4e5f3b6608487;p=oweals%2Fuhttpd.git 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; } }