mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
let httpd handle CL/TE for non-http handlers
Submitted By: ylavic, covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1916769 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -390,6 +390,14 @@ static int pass_response(request_rec *r, proxy_conn_rec *conn)
|
||||
return status;
|
||||
}
|
||||
|
||||
/* SCGI has its own body framing mechanism which we don't
|
||||
* match against any provided Content-Length, so let the
|
||||
* core determine C-L vs T-E based on what's actually sent.
|
||||
*/
|
||||
if (!apr_table_get(r->subprocess_env, AP_TRUST_CGILIKE_CL_ENVVAR))
|
||||
apr_table_unset(r->headers_out, "Content-Length");
|
||||
apr_table_unset(r->headers_out, "Transfer-Encoding");
|
||||
|
||||
conf = ap_get_module_config(r->per_dir_config, &proxy_scgi_module);
|
||||
if (conf->sendfile && conf->sendfile != scgi_sendfile_off) {
|
||||
short err = 1;
|
||||
|
Reference in New Issue
Block a user