From: Ryan Bloom Date: Tue, 7 Nov 2000 00:33:48 +0000 (+0000) Subject: Remvoe AP_END_OF_BRIGADE. This definition didn't really mean anything, X-Git-Tag: APACHE_2_0_ALPHA_8~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b834d5f0bcd886ed95c2758bd5acbc4e7e5f8b4;p=thirdparty%2Fapache%2Fhttpd.git Remvoe AP_END_OF_BRIGADE. This definition didn't really mean anything, because it didn't signify the end of the brigade, and it didn't signify the end of a response. It ended up meaning flush the data, which can be detemined with bucket type checks. This also makes the FLUSH and EOS buckets have a 0 length, which makes a lot of code cleaner, because now we can just add lengths and be sure they are all >=0. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86851 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/mod_charset_lite.c b/modules/experimental/mod_charset_lite.c index a6f0172de7f..72da9e4dbf9 100644 --- a/modules/experimental/mod_charset_lite.c +++ b/modules/experimental/mod_charset_lite.c @@ -881,7 +881,7 @@ static apr_status_t xlate_out_filter(ap_filter_t *f, ap_bucket_brigade *bb) } if (AP_BUCKET_IS_EOS(dptr)) { done = 1; - cur_len = AP_END_OF_BRIGADE; /* XXX yuck, but that tells us to send + cur_len = -1; /* XXX yuck, but that tells us to send * eos down; when we minimize our bb construction * we'll fix this crap */ if (ctx->saved) { @@ -962,7 +962,7 @@ static apr_status_t xlate_out_filter(ap_filter_t *f, ap_bucket_brigade *bb) } } if (rv == APR_SUCCESS) { - if (cur_len == AP_END_OF_BRIGADE) { + if (cur_len == -1) { rv = send_eos(f); } }