From 1c98aabbf13be673d386684d13e066139eed3c68 Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Sun, 6 May 2001 23:27:14 +0000 Subject: Back out the recent change to ap_get_brigade, to make it use indirection again. The problem is that the amount of data read from the network, is not necessarily the amount of data returned from the filters. It is possible for input filters to add bytes to the data read from the network. To fix the original bug, I just removed the line from ap_get_client_block that decremented r->remaining, we allow the http_filter to do that for us. I have also removed an incorrect comment. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89041 13f79535-47bb-0310-9956-ffa450edef68 --- modules/experimental/mod_charset_lite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/experimental/mod_charset_lite.c') diff --git a/modules/experimental/mod_charset_lite.c b/modules/experimental/mod_charset_lite.c index 190ec1b4d3..79830eed08 100644 --- a/modules/experimental/mod_charset_lite.c +++ b/modules/experimental/mod_charset_lite.c @@ -1005,7 +1005,7 @@ static void transfer_brigade(apr_bucket_brigade *in, apr_bucket_brigade *out) } static int xlate_in_filter(ap_filter_t *f, apr_bucket_brigade *bb, - ap_input_mode_t mode, apr_size_t readbytes) + ap_input_mode_t mode, apr_size_t *readbytes) { apr_status_t rv; charset_req_t *reqinfo = ap_get_module_config(f->r->request_config, -- cgit v1.2.3