[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
personal/stbuehler/mod-csrf-old
Glenn Strauss 7 years ago
parent fde843f63e
commit c55cf3df10

@ -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

Loading…
Cancel
Save