From c55cf3df108a33639ba9544a145358f28104e614 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Wed, 18 May 2016 00:05:34 -0400 Subject: [PATCH] [mod_cgi,mod_scgi] X-Sendfile sets file_started (fixes #2733) x-ref: "X-LIGHTTPD-send-file return 0 bytes" https://redmine.lighttpd.net/issues/2733 --- src/http-header-glue.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/http-header-glue.c b/src/http-header-glue.c index fda3a64a..976e4584 100644 --- a/src/http-header-glue.c +++ b/src/http-header-glue.c @@ -674,6 +674,8 @@ void http_response_xsendfile (server *srv, connection *con, buffer *path, const const int status = con->http_status; int valid = 1; + con->file_started = 1; + /* reset Content-Length, if set by backend * Content-Length might later be set to size of X-Sendfile static file, * determined by open(), fstat() to reduces race conditions if the file -- 2.11.4.GIT