]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Use the ap_is_initial_req() function to test for a subrequest instead of using r...
authorPaul Querna <pquerna@apache.org>
Mon, 11 Oct 2004 10:46:17 +0000 (10:46 +0000)
committerPaul Querna <pquerna@apache.org>
Mon, 11 Oct 2004 10:46:17 +0000 (10:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105403 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_deflate.c

index 768498f272ecd7675fddc1e06efb9cdd543ed45e..4567b5cc96b56ae83997e2983ffd21539ec7269f 100644 (file)
@@ -273,7 +273,7 @@ static apr_status_t deflate_out_filter(ap_filter_t *f,
         const char *encoding;
 
         /* only work on main request/no subrequests */
-        if (r->main) {
+        if (!ap_is_initial_req(r)) {
             ap_remove_output_filter(f);
             return ap_pass_brigade(f->next, bb);
         }
@@ -644,7 +644,7 @@ static apr_status_t deflate_in_filter(ap_filter_t *f,
         apr_size_t len;
 
         /* only work on main request/no subrequests */
-        if (r->main) {
+        if (!ap_is_initial_req(r)) {
             ap_remove_input_filter(f);
             return ap_get_brigade(f->next, bb, mode, block, readbytes);
         }
@@ -908,7 +908,7 @@ static apr_status_t inflate_out_filter(ap_filter_t *f,
         const char *encoding;
 
         /* only work on main request/no subrequests */
-        if (r->main) {
+        if (!ap_is_initial_req(r)) {
             ap_remove_output_filter(f);
             return ap_pass_brigade(f->next, bb);
         }