fix chunked transfer encoding in keepalive mode
[project/uhttpd.git] / file.c
diff --git a/file.c b/file.c
index 9a2880f..9946d7c 100644 (file)
--- a/file.c
+++ b/file.c
@@ -614,7 +614,7 @@ static void uh_file_request(struct client *cl, const char *url,
                if (fd < 0)
                        goto error;
 
-               req->respond_chunked = false;
+               req->disable_chunked = true;
                cl->dispatch.file.hdr = tb;
                uh_file_data(cl, pi, fd);
                cl->dispatch.file.hdr = NULL;