]> granicus.if.org Git - apache/commitdiff
mod_buffer: Make sure we step down for subrequests, but not for internal
authorGraham Leggett <minfrin@apache.org>
Sun, 23 Oct 2011 13:08:04 +0000 (13:08 +0000)
committerGraham Leggett <minfrin@apache.org>
Sun, 23 Oct 2011 13:08:04 +0000 (13:08 +0000)
redirects triggered by mod_rewrite.

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

CHANGES
modules/filters/mod_buffer.c

diff --git a/CHANGES b/CHANGES
index 366a1d38cca351246d0e5832d27f068bd995868a..f5fe1ca59a3eff68c42af30c1c185976da9d2c61 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -12,6 +12,9 @@ Changes with Apache 2.3.15
      PR 51714. [Stefan Fritsch, Jim Jagielski, Ruediger Pluem, Eric Covener,
      <lowprio20 gmail.com>]
 
+  *) mod_buffer: Make sure we step down for subrequests, but not for internal
+     redirects triggered by mod_rewrite. [Graham Leggett]
+
   *) mod_lua: add r:construct_url as a wrapper for ap_construct_url.
      [Eric Covener]
  
index 5e9625de223d083705b80ddb8fef23db7a0d5373..cf552aa78459d02a68f365412cd6e8c7201d5a85 100644 (file)
@@ -66,7 +66,7 @@ static apr_status_t buffer_out_filter(ap_filter_t *f, apr_bucket_brigade *bb) {
          * it did. Within subrequests, we have no EOS to check for,
          * so we don't know when to flush the buffer to the network
          */
-        if (!ap_is_initial_req(f->r)) {
+        if (f->r->main) {
             ap_remove_output_filter(f);
             return ap_pass_brigade(f->next, bb);
         }