|
|
ebde72 |
diff --git a/modules/proxy/mod_proxy_ajp.c b/modules/proxy/mod_proxy_ajp.c
|
|
|
ebde72 |
index e2992fc..46d42bc 100644
|
|
|
ebde72 |
--- a/modules/proxy/mod_proxy_ajp.c
|
|
|
ebde72 |
+++ b/modules/proxy/mod_proxy_ajp.c
|
|
|
ebde72 |
@@ -246,9 +246,18 @@ static int ap_proxy_ajp_request(apr_pool_t *p, request_rec *r,
|
|
|
ebde72 |
/* read the first block of data */
|
|
|
ebde72 |
input_brigade = apr_brigade_create(p, r->connection->bucket_alloc);
|
|
|
ebde72 |
tenc = apr_table_get(r->headers_in, "Transfer-Encoding");
|
|
|
ebde72 |
- if (tenc && (ap_cstr_casecmp(tenc, "chunked") == 0)) {
|
|
|
ebde72 |
- /* The AJP protocol does not want body data yet */
|
|
|
ebde72 |
- ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(00870) "request is chunked");
|
|
|
ebde72 |
+ if (tenc) {
|
|
|
ebde72 |
+ if (ap_cstr_casecmp(tenc, "chunked") == 0) {
|
|
|
ebde72 |
+ /* The AJP protocol does not want body data yet */
|
|
|
ebde72 |
+ ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(00870)
|
|
|
ebde72 |
+ "request is chunked");
|
|
|
ebde72 |
+ }
|
|
|
ebde72 |
+ else {
|
|
|
ebde72 |
+ ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(10396)
|
|
|
ebde72 |
+ "%s Transfer-Encoding is not supported",
|
|
|
ebde72 |
+ tenc);
|
|
|
ebde72 |
+ return HTTP_INTERNAL_SERVER_ERROR;
|
|
|
ebde72 |
+ }
|
|
|
ebde72 |
} else {
|
|
|
ebde72 |
/* Get client provided Content-Length header */
|
|
|
ebde72 |
content_length = get_content_length(r);
|