projects
/
oweals
/
uhttpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5138de
)
do not send an error on a full buffer for post data
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 3 Jan 2013 02:33:24 +0000
(
03:33
+0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 3 Jan 2013 02:33:24 +0000
(
03:33
+0100)
client.c
patch
|
blob
|
history
diff --git
a/client.c
b/client.c
index 408a8132b1645c03207faec7cf0fe5771be9463d..28c8f760be9a14a0d9ee5572796a32b769f8862d 100644
(file)
--- 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;
}