From 5fbf9d22b5dce9c65d24b5cac313083cadf6f23f Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Mon, 13 Nov 2000 14:19:41 +0000 Subject: [PATCH] The core handler should never close a file, because we haven't actually 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 | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/http/http_core.c b/modules/http/http_core.c index 46f5c74ef2..3db10725d3 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -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; } -- 2.50.1