From 49fb28b385a2750e565daa97ea6895b0cf1dbc04 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Malo?= Date: Sat, 17 Apr 2004 00:19:16 +0000 Subject: [PATCH] don't return forbidden, if the file was just not found. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103419 13f79535-47bb-0310-9956-ffa450edef68 --- modules/mappers/mod_negotiation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mappers/mod_negotiation.c b/modules/mappers/mod_negotiation.c index fc6d10c3d2..7b477b9073 100644 --- a/modules/mappers/mod_negotiation.c +++ b/modules/mappers/mod_negotiation.c @@ -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); -- 2.50.1