From 9bc9d79079bbeeb65f46c59ab6aa40588cbde9ff Mon Sep 17 00:00:00 2001 From: Graham Leggett Date: Tue, 14 May 2013 18:58:06 +0000 Subject: core: Stop the HTTP_IN filter from attempting to write error buckets to the output filters, which is bogus in the proxy case. Create a clean mapping from APR codes to HTTP status codes, and use it where needed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1482522 13f79535-47bb-0310-9956-ffa450edef68 --- modules/dav/main/mod_dav.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modules/dav') diff --git a/modules/dav/main/mod_dav.c b/modules/dav/main/mod_dav.c index 6094049858..1d204e048f 100644 --- a/modules/dav/main/mod_dav.c +++ b/modules/dav/main/mod_dav.c @@ -1001,9 +1001,11 @@ static int dav_method_put(request_rec *r) } else { /* XXX: should this actually be HTTP_BAD_REQUEST? */ - http_err = HTTP_INTERNAL_SERVER_ERROR; - msg = apr_psprintf(r->pool, "An error occurred while reading" - " the request body (URI: %s)", msg); + http_err = ap_map_http_request_error(rc, + HTTP_INTERNAL_SERVER_ERROR); + msg = apr_psprintf(r->pool, + "An error occurred while reading" + " the request body (URI: %s)", msg); } err = dav_new_error(r->pool, http_err, 0, rc, msg); break; -- cgit v1.2.3