diff options
author | Yann Ylavic <ylavic@apache.org> | 2022-06-01 13:46:54 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2022-06-01 13:46:54 +0000 |
commit | 156ddf6fb575a643007a335237899d9d738a7dc0 (patch) | |
tree | f89642edfd93bc695153e5b693d81cf082eb56ba /modules/proxy | |
parent | 1a033d310564ee1e2149871a305dfbe915eb9347 (diff) | |
download | httpd-156ddf6fb575a643007a335237899d9d738a7dc0.tar.gz |
mod_proxy_ajp: T-E has precedence over C-L.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1901521 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/proxy')
-rw-r--r-- | modules/proxy/mod_proxy_ajp.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/modules/proxy/mod_proxy_ajp.c b/modules/proxy/mod_proxy_ajp.c index c76a4f1bc9..9cd7adbcbb 100644 --- a/modules/proxy/mod_proxy_ajp.c +++ b/modules/proxy/mod_proxy_ajp.c @@ -245,9 +245,18 @@ static int ap_proxy_ajp_request(apr_pool_t *p, request_rec *r, /* read the first block of data */ input_brigade = apr_brigade_create(p, r->connection->bucket_alloc); tenc = apr_table_get(r->headers_in, "Transfer-Encoding"); - if (tenc && (ap_cstr_casecmp(tenc, "chunked") == 0)) { - /* The AJP protocol does not want body data yet */ - ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(00870) "request is chunked"); + if (tenc) { + if (ap_cstr_casecmp(tenc, "chunked") == 0) { + /* The AJP protocol does not want body data yet */ + ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(00870) + "request is chunked"); + } + else { + ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(10396) + "%s Transfer-Encoding is not supported", + tenc); + return HTTP_INTERNAL_SERVER_ERROR; + } } else { /* Get client provided Content-Length header */ content_length = get_content_length(r); |