summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-05-30 15:58:24 +0200
committerJo-Philipp Wich <jow@openwrt.org>2015-05-30 15:58:24 +0200
commit618493e378e2239f0d30902e47adfa134e649fdc (patch)
tree7a4fa7f24bd244e96aee6cdc152bd036a121b0d3 /file.c
parent5162e3b0ee7bd1d0fd6e75e1ca7993a1834b5291 (diff)
file: disable chunked encoding for file responses
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'file.c')
-rw-r--r--file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/file.c b/file.c
index c8833b6..480c40b 100644
--- 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;
+ req->respond_chunked = false;
cl->dispatch.file.hdr = tb;
uh_file_data(cl, pi, fd);
cl->dispatch.file.hdr = NULL;