cases in the core_output_filters where there was a problem, and the core
returned an error code instead of an HTTP status code. This keeps us from
putting status codes like 32 and 104 in the access log.
Submitted by: Ryan Morgan <rmorgan@covalent.net>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94143
13f79535-47bb-0310-9956-
ffa450edef68
if (rv != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_ERR, rv, c->base_server,
"core_output_filter: Error reading from bucket.");
- return rv;
+ return HTTP_INTERNAL_SERVER_ERROR;
}
apr_brigade_write(ctx->b, NULL, NULL, str, n);
c->aborted = 1;
}
- return rv;
+ /* The client has aborted, but the request was successful. We
+ * will report success, and leave it to the access and error
+ * logs to note that the connection was aborted.
+ */
+ return APR_SUCCESS;
}
b = more;