]> granicus.if.org Git - apache/commitdiff
Restore comment about LimitRequestBody vs proxied responses.
authorYann Ylavic <ylavic@apache.org>
Fri, 20 Apr 2018 10:38:05 +0000 (10:38 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 20 Apr 2018 10:38:05 +0000 (10:38 +0000)
ResponseFieldSize actually applies to headers (not body), so the comment was
valid but did match the code (addressed by r1829642 still).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1829643 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_filters.c

index e487692bf8d8c339c5089420e28820976ba3a63c..2887136caf75c1b33b4ea7f97624dfe85e6e267e 100644 (file)
@@ -317,9 +317,10 @@ apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b,
         f->ctx = ctx = apr_pcalloc(f->r->pool, sizeof(*ctx));
         ctx->state = BODY_NONE;
 
-        /* LimitRequestBody does not apply to proxied responses, which have
-         * their own ResponseFieldSize parameter.
+        /* LimitRequestBody does not apply to proxied responses.
          * 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 != PROXYREQ_RESPONSE) {
             ctx->limit = ap_get_limit_req_body(f->r);