From: Jeff Trawick Date: Thu, 9 Nov 2000 13:36:01 +0000 (+0000) Subject: Simplify the call to ap_send_fd(). X-Git-Tag: APACHE_2_0_ALPHA_8~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e935210c99a7fbe57f4bb01439b114b6c3110797;p=thirdparty%2Fapache%2Fhttpd.git 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 0fb8fec8950..d7ebe3f8666 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