summaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-03 01:03:17 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-03 01:03:17 +0100
commit0a6fa62baa6d21455485bc6669f4e5f3b6608487 (patch)
treec96f58faa80df808cde1545d042d26b43ce591c4 /client.c
parentc92b8cb32d10559791e7bd4937ecc5f49a45ba9d (diff)
use a better error code for unsupported expect headers
Diffstat (limited to 'client.c')
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}