summaryrefslogtreecommitdiffstats
path: root/modules/experimental/mod_charset_lite.c
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2001-05-07 01:27:14 +0200
committerRyan Bloom <rbb@apache.org>2001-05-07 01:27:14 +0200
commit1c98aabbf13be673d386684d13e066139eed3c68 (patch)
treeaf55065613e5e674267768b224210e378323225d /modules/experimental/mod_charset_lite.c
parentSomething got deleted from the module structure. (diff)
downloadapache2-1c98aabbf13be673d386684d13e066139eed3c68.tar.xz
apache2-1c98aabbf13be673d386684d13e066139eed3c68.zip
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
Diffstat (limited to 'modules/experimental/mod_charset_lite.c')
-rw-r--r--modules/experimental/mod_charset_lite.c2
1 files changed, 1 insertions, 1 deletions
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,