httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject [PATCH] Re: RFE: ap_input_mode_t as bitflags
Date Mon, 16 Aug 2004 18:19:32 GMT
Joe Schaefer <joe+gmane@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


Mime
View raw message