file: disable chunked encoding for file responses
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 30 May 2015 13:58:24 +0000 (15:58 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 30 May 2015 13:58:24 +0000 (15:58 +0200)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
file.c

diff --git a/file.c b/file.c
index c8833b6..480c40b 100644 (file)
--- a/file.c
+++ b/file.c
@@ -614,6 +614,7 @@ static void uh_file_request(struct client *cl, const char *url,
                if (fd < 0)
                        goto error;
 
                if (fd < 0)
                        goto error;
 
+               req->respond_chunked = false;
                cl->dispatch.file.hdr = tb;
                uh_file_data(cl, pi, fd);
                cl->dispatch.file.hdr = NULL;
                cl->dispatch.file.hdr = tb;
                uh_file_data(cl, pi, fd);
                cl->dispatch.file.hdr = NULL;