diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-03 03:33:24 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-03 03:33:24 +0100 |
commit | 92f4e1306dd060106a3f5c5f61303d9613f93888 (patch) | |
tree | 8e302928ef002971b955899e9d91792725a51f0c | |
parent | a5138de52dc022aaec26948055da676851613086 (diff) |
do not send an error on a full buffer for post data
-rw-r--r-- | client.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |