in a 500 error, which previously was unlogged. Now we log the
error.
Submitted by: Jeff Trawick
Reviewed by: Jim Jagielski, Martin Kraemer
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@102326
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 1.3.30
+ *) Some syntax errors in mod_mime_magic's magic file can result
+ in a 500 error, which previously was unlogged. Now we log the
+ error. [Jeff Trawick]
+
*) Linux 2.4+: If Apache is started as root and you code
CoreDumpDirectory, coredumps are enabled via the prctl() syscall.
Backport of a 2.x feature by Greg Ames. [Jeff Trawick]
r->content_encoding = tmp;
}
- /* detect memory allocation errors */
+ /* detect memory allocation or other errors */
if (!r->content_type ||
(state == rsl_encoding && !r->content_encoding)) {
+ ap_log_rerror(APLOG_MARK, APLOG_NOERRNO | APLOG_ERR, r,
+ MODNAME ": unexpected state %d; could be caused by bad "
+ "data in magic file",
+ state);
return HTTP_INTERNAL_SERVER_ERROR;
}