]> granicus.if.org Git - apache/commitdiff
ap_set_content_length() now has a void return.
authorGreg Stein <gstein@apache.org>
Wed, 8 Nov 2000 03:12:58 +0000 (03:12 +0000)
committerGreg Stein <gstein@apache.org>
Wed, 8 Nov 2000 03:12:58 +0000 (03:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86863 13f79535-47bb-0310-9956-ffa450edef68

modules/cache/mod_file_cache.c

index ea10da4616c0e472dfa572ae40479ca88a22ddc6..45ddd0176d9d8908aeed136b46df05b60f97991b 100644 (file)
@@ -457,10 +457,10 @@ static int file_cache_handler(request_rec *r)
     ap_update_mtime(r, match->finfo.mtime);
     ap_set_last_modified(r);
     ap_set_etag(r);
-    if (((errstatus = ap_meets_conditions(r)) != OK)
-       || (errstatus = ap_set_content_length (r, match->finfo.size))) {
-           return errstatus;
+    if ((errstatus = ap_meets_conditions(r)) != OK) {
+       return errstatus;
     }
+    ap_set_content_length(r, match->finfo.size);
 
     rangestatus = ap_set_byterange(r);
     ap_send_http_header(r);