You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by yl...@apache.org on 2018/04/13 08:04:59 UTC

svn commit: r1829039 - /httpd/httpd/trunk/modules/filters/mod_xml2enc.c

Author: ylavic
Date: Fri Apr 13 08:04:59 2018
New Revision: 1829039

URL: http://svn.apache.org/viewvc?rev=1829039&view=rev
Log:
mod_xml2enc: follow up to r1829038.

If any, pass pending meta bucket down the chain before leaving.


Modified:
    httpd/httpd/trunk/modules/filters/mod_xml2enc.c

Modified: httpd/httpd/trunk/modules/filters/mod_xml2enc.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/filters/mod_xml2enc.c?rev=1829039&r1=1829038&r2=1829039&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/filters/mod_xml2enc.c (original)
+++ httpd/httpd/trunk/modules/filters/mod_xml2enc.c Fri Apr 13 08:04:59 2018
@@ -547,8 +547,18 @@ static apr_status_t xml2enc_ffunc(ap_fil
                 return rv;
         }
     }
+    if (pending_meta) {
+        /* passing pending meta bucket down the chain before leaving */
+        rv = ap_pass_brigade(f->next, ctx->bbnext);
+        apr_brigade_cleanup(ctx->bbnext);
+        if (rv != APR_SUCCESS) {
+            return rv;
+        }
+    }
+
     return APR_SUCCESS;
 }
+
 static apr_status_t xml2enc_charset(request_rec* r, xmlCharEncoding* encp,
                                     const char** encoding)
 {