From: Jeff Trawick Date: Thu, 9 Nov 2000 13:36:01 +0000 (+0000) Subject: Simplify the call to ap_send_fd(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebda9d89ad190261b2d92be8090bb5a12f9ace6a;p=apache 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 --- 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