diff options
Diffstat (limited to 'server/error_bucket.c')
-rw-r--r-- | server/error_bucket.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/error_bucket.c b/server/error_bucket.c index 9c118e6144..52b55c35c4 100644 --- a/server/error_bucket.c +++ b/server/error_bucket.c @@ -61,6 +61,9 @@ AP_DECLARE(apr_bucket *) ap_bucket_error_create(int error, const char *buf, APR_BUCKET_INIT(b); b->free = apr_bucket_free; b->list = list; + if (!ap_is_HTTP_VALID_RESPONSE(error)) { + error = HTTP_INTERNAL_SERVER_ERROR; + } return ap_bucket_error_make(b, error, buf, p); } |