use a better error code for unsupported expect headers
authorFelix Fietkau <nbd@openwrt.org>
Thu, 3 Jan 2013 00:03:17 +0000 (01:03 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 3 Jan 2013 00:03:17 +0000 (01:03 +0100)
client.c

index 860403464ccd9fece961230ac3b192a662bebc99..4d8b17b0d1b9279040daefc1a5581e8a047b1661 100644 (file)
--- 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;
                }
        }