]> granicus.if.org Git - apache/commitdiff
* This shortcut is too short. It is not up to the filters to decide
authorRuediger Pluem <rpluem@apache.org>
Sun, 23 Jul 2006 15:50:08 +0000 (15:50 +0000)
committerRuediger Pluem <rpluem@apache.org>
Sun, 23 Jul 2006 15:50:08 +0000 (15:50 +0000)
  whether filters down the chain can do something useful with this empty
  brigade.

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

modules/filters/mod_deflate.c

index 2c22bb55747ecc5497943962b6beb276d698fa66..037eae55de57fa74643078cf870c63b629384922 100644 (file)
@@ -263,7 +263,7 @@ static apr_status_t deflate_out_filter(ap_filter_t *f,
 
     /* Do nothing if asked to filter nothing. */
     if (APR_BRIGADE_EMPTY(bb)) {
-        return APR_SUCCESS;
+        return ap_pass_brigade(f->next, bb);
     }
 
     /* If we don't have a context, we need to ensure that it is okay to send
@@ -878,7 +878,7 @@ static apr_status_t inflate_out_filter(ap_filter_t *f,
 
     /* Do nothing if asked to filter nothing. */
     if (APR_BRIGADE_EMPTY(bb)) {
-        return APR_SUCCESS;
+        return ap_pass_brigade(f->next, bb);
     }
 
     c = ap_get_module_config(r->server->module_config, &deflate_module);