]> granicus.if.org Git - apache/commitdiff
Simplify the call to ap_send_fd().
authorJeff Trawick <trawick@apache.org>
Thu, 9 Nov 2000 13:36:01 +0000 (13:36 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 9 Nov 2000 13:36:01 +0000 (13:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86888 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_core.c

index 0fb8fec89504f1463581faf2b1ae280ade421ac1..d7ebe3f86661511a0c0d97c3feef87a9c6c07814 100644 (file)
@@ -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