summaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-03 03:33:24 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-03 03:33:24 +0100
commit92f4e1306dd060106a3f5c5f61303d9613f93888 (patch)
tree8e302928ef002971b955899e9d91792725a51f0c /client.c
parenta5138de52dc022aaec26948055da676851613086 (diff)
do not send an error on a full buffer for post data
Diffstat (limited to 'client.c')
-rw-r--r--client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/client.c b/client.c
index 408a813..28c8f76 100644
--- a/client.c
+++ b/client.c
@@ -360,7 +360,8 @@ static void client_read_cb(struct client *cl)
break;
if (!read_cbs[cl->state](cl, str, len)) {
- if (len == us->r.buffer_len)
+ if (len == us->r.buffer_len &&
+ cl->state != CLIENT_STATE_DATA)
uh_header_error(cl, 413, "Request Entity Too Large");
break;
}