From: Ryan Bloom Date: Wed, 8 Nov 2000 02:46:00 +0000 (+0000) Subject: Fix a compile break. ap_set_content_length is a void function now, so we X-Git-Tag: APACHE_2_0_ALPHA_8~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0225f3424ae40d812e5a03a08ef8f5aa136180a0;p=thirdparty%2Fapache%2Fhttpd.git Fix a compile break. ap_set_content_length is a void function now, so we can't check the return code. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86862 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_core.c b/modules/http/http_core.c index 5a58faed8f1..627e29e3438 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -2966,8 +2966,8 @@ static int default_handler(request_rec *r) ap_set_last_modified(r); ap_set_etag(r); apr_table_setn(r->headers_out, "Accept-Ranges", "bytes"); - if (((errstatus = ap_meets_conditions(r)) != OK) - || (errstatus = ap_set_content_length(r, r->finfo.size))) { + ap_set_content_length(r, r->finfo.size); + if ((errstatus = ap_meets_conditions(r)) != OK) { apr_close(fd); return errstatus; }