]> granicus.if.org Git - apache/commitdiff
That's enough for tonight ... gheesh. Allow 2xx + OK (0) results from
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 3 Aug 2001 02:22:47 +0000 (02:22 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 3 Aug 2001 02:22:47 +0000 (02:22 +0000)
  the subrequest to go out to the client.  This doesn't address (..)
  anomilies, which I will address in the a.m.

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

modules/generators/mod_autoindex.c

index 467e892ff9e7d9d5b079d40398bc2b51dbaa5440..74fffa0c3fa5ba6ccde331ee28b0d21efdd9af46 100644 (file)
@@ -1162,7 +1162,7 @@ static struct ent *make_autoindex_entry(const apr_finfo_t *dirent,
     }
 
     if ((rr->finfo.filetype != APR_DIR && rr->finfo.filetype != APR_REG)
-        || (rr->status != OK && ap_is_HTTP_SUCCESS(rr->status))) {
+        || !(rr->status == OK || ap_is_HTTP_SUCCESS(rr->status))) {
         ap_destroy_sub_req(rr);
         return (NULL);
     }