]> granicus.if.org Git - apache/commitdiff
don't return forbidden, if the file was just not found.
authorAndré Malo <nd@apache.org>
Sat, 17 Apr 2004 00:19:16 +0000 (00:19 +0000)
committerAndré Malo <nd@apache.org>
Sat, 17 Apr 2004 00:19:16 +0000 (00:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103419 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_negotiation.c

index fc6d10c3d29327324e7d7eab5daddc17c7c3fcb3..7b477b90734ce77e2c2210a7c9a4df83ecc3d032 100644 (file)
@@ -956,7 +956,7 @@ static int read_type_map(apr_file_t **map, negotiation_state *neg,
                 APR_OS_DEFAULT, neg->pool)) != APR_SUCCESS) {
         ap_log_rerror(APLOG_MARK, APLOG_ERR, status, r,
                       "cannot access type map file: %s", rr->filename);
-        return HTTP_FORBIDDEN;
+        return APR_STATUS_IS_ENOENT(status) ? HTTP_NOT_FOUND : HTTP_FORBIDDEN;
     }
 
     clean_var_rec(&mime_info);