From 0a6fa62baa6d21455485bc6669f4e5f3b6608487 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 3 Jan 2013 01:03:17 +0100 Subject: [PATCH 1/1] use a better error code for unsupported expect headers --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.11.0