You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Joe Schaefer <jo...@sunstarsys.com> on 2004/08/16 20:19:32 UTC

[PATCH] Re: RFE: ap_input_mode_t as bitflags

Joe Schaefer <jo...@sunstarsys.com> writes:

[...]

> Or they could all be required to punt on AP_MODE_GETLINE (like
> mod_deflate does),  which would mean some filters like mod_ext_filter
> need a patch.

Here's the patch for mod_ext_filter (untested):

Index: modules/filters/mod_ext_filter.c
===================================================================
RCS file: /home/cvspublic/httpd-2.0/modules/filters/mod_ext_filter.c,v
retrieving revision 1.13
diff -u -r1.13 mod_ext_filter.c
--- modules/filters/mod_ext_filter.c    9 Feb 2004 20:29:19 -0000       1.13
+++ modules/filters/mod_ext_filter.c    16 Aug 2004 18:18:28 -0000
@@ -886,7 +886,7 @@
     }

     rv = ap_get_brigade(f->next, bb, mode, block, readbytes);
-    if (rv != APR_SUCCESS) {
+    if (mode != AP_MODE_READBYTES || rv != APR_SUCCESS) {
         return rv;
     }

-- 
Joe Schaefer