do not send an error on a full buffer for post data
authorFelix Fietkau <nbd@openwrt.org>
Thu, 3 Jan 2013 02:33:24 +0000 (03:33 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 3 Jan 2013 02:33:24 +0000 (03:33 +0100)
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;
                }