From 964740fd45128e2ec44dc6bbddc719ab92c3211a Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Thu, 21 Sep 2000 22:44:51 +0000 Subject: [PATCH] Fix error in setting bytes_sent. Need more time to think about the other problem noted in this commit. Thanks Jeff! git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86281 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http/http_core.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/http/http_core.c b/modules/http/http_core.c index f855e0a6c5..d3d8ad2879 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -3152,8 +3152,12 @@ static int core_filter(ap_filter_t *f, ap_bucket_brigade *b) * the bucket by definition represents the unfiltered contents * of a file. Thus it is acceptable to use apr_sendfile(). */ - rv = send_the_file(e->data, e->offset, e->length, r, &bytes_sent); + rv = send_the_file(e->data, e->offset, e->length, r, &written); + /* Returning on APR_SUCCESS is not the correct behaviour as there + * may be other buckets... Need to think about this awhile before + * I change it. wgs + */ if (rv == APR_SUCCESS) { ap_brigade_destroy(b); return APR_SUCCESS; -- 2.40.0