If f->r->proxyreq is PROXYREQ_PROXY or PROXYREQ_REVERSE in ap_http_filter(),
we are still handling the request, not the response where LimitRequestBody
does not apply.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1829642 13f79535-47bb-0310-9956-
ffa450edef68
-*- coding: utf-8 -*-
Changes with Apache 2.5.1
+ *) http: LimitRequestBody applies to proxied requests. [Yann Ylavic]
+
*) mod_proxy_http: Fix response header thrown away after the previous one
was considered too large and truncated. PR 62196. [Yann Ylavic]
f->ctx = ctx = apr_pcalloc(f->r->pool, sizeof(*ctx));
ctx->state = BODY_NONE;
- /* LimitRequestBody does not apply to proxied responses.
+ /* LimitRequestBody does not apply to proxied responses, which have
+ * their own ResponseFieldSize parameter.
* Consider implementing this check in its own filter.
- * Would adding a directive to limit the size of proxied
- * responses be useful?
*/
- if (!f->r->proxyreq) {
+ if (f->r->proxyreq != PROXYREQ_RESPONSE) {
ctx->limit = ap_get_limit_req_body(f->r);
}
else {