From: Ryan Bloom Date: Mon, 13 Nov 2000 14:19:41 +0000 (+0000) Subject: The core handler should never close a file, because we haven't actually X-Git-Tag: APACHE_2_0_ALPHA_8~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f53ac5876cb39e5ccbb76a4c3da913755aa01bff;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/http/http_core.c b/modules/http/http_core.c index 46f5c74ef27..3db10725d3b 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; }