From ebda9d89ad190261b2d92be8090bb5a12f9ace6a Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Thu, 9 Nov 2000 13:36:01 +0000 Subject: [PATCH] Simplify the call to ap_send_fd(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86888 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http/http_core.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/http/http_core.c b/modules/http/http_core.c index 0fb8fec895..d7ebe3f866 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -3000,11 +3000,9 @@ static int default_handler(request_rec *r) ap_send_http_header(r); if (!r->header_only) { - apr_size_t length = r->finfo.size; - apr_off_t offset = 0; - apr_size_t nbytes = 0; + apr_size_t nbytes; - ap_send_fd(fd, r, offset, length, &nbytes); + ap_send_fd(fd, r, 0, r->finfo.size, &nbytes); } #ifdef AP_USE_MMAP_FILES -- 2.50.1