git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@219879
13f79535-47bb-0310-9956-
ffa450edef68
-*- coding: utf-8 -*-
Changes with Apache 2.1.7
[Remove entries to the current 2.0 section below, when backported]
-
+
+ *) mod_negotiation: Correctly report 404 instead of 403 for missing files.
+ [Paul Querna]
+
*) new hook (request_status) that gets ran in proxy_handler just before
the final return. This gives modules an opportunity to do something
based on the proxy status. (minor MMN bump)
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 APR_STATUS_IS_ENOENT(status) ? HTTP_NOT_FOUND : HTTP_FORBIDDEN;
+ if (APR_STATUS_IS_ENOTDIR(status) || APR_STATUS_IS_ENOENT(status)) {
+ return HTTP_NOT_FOUND;
+ }
+ else {
+ return HTTP_FORBIDDEN;
+ }
}
clean_var_rec(&mime_info);