]> granicus.if.org Git - apache/commitdiff
The core handler should never close a file, because we haven't actually
authorRyan Bloom <rbb@apache.org>
Mon, 13 Nov 2000 14:19:41 +0000 (14:19 +0000)
committerRyan Bloom <rbb@apache.org>
Mon, 13 Nov 2000 14:19:41 +0000 (14:19 +0000)
sent the file yet.  This also removes the send_http_headers call, because
that's a no-op so it doesn't make much sense to leave it in.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86938 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_core.c

index 46f5c74ef274dffba1555374f5ae6f38102ae0da..3db10725d3bfbce243038588ace2f5d4ec2d4096 100644 (file)
@@ -2939,15 +2939,12 @@ static int default_handler(request_rec *r)
                        ap_md5digest(r->pool, fd));
     }
 
-    ap_send_http_header(r);
-       
     if (!r->header_only) {
         apr_size_t nbytes;
 
         ap_send_fd(fd, r, 0, r->finfo.size, &nbytes);
     }
 
-    apr_close(fd);
     return OK;
 }