Browse Source

[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 6 years ago
parent
commit
b29c8efcb9
  1. 2
      src/mod_fastcgi.c

2
src/mod_fastcgi.c

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