[mod_fastcgi] no chunked response w/ X-Sendfile (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 c55cf3df10
commit b29c8efcb9

@ -2613,10 +2613,10 @@ static int fcgi_demux_response(server *srv, handler_ctx *hctx) {
http_response_xsendfile(srv, con, ds->value, host->xsendfile_docroot);
if (con->mode == DIRECT) {
fin = 1;
break;
}
hctx->send_content_body = 0; /* ignore the content */
break;
}
/* enable chunked-transfer-encoding */

Loading…
Cancel
Save