From ba4796552c2f2bc4a50d39e9a08be2ef1fb2810e Mon Sep 17 00:00:00 2001 From: Nick Kew Date: Sun, 14 Nov 2010 00:17:29 +0000 Subject: [PATCH] Return 400 not 503 if we have to abort due to malformed chunked encoding. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1034918 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 3 +++ modules/http/http_filters.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 6963dba9d6..f83db1f2e1 100644 --- a/CHANGES +++ b/CHANGES @@ -248,6 +248,9 @@ Changes with Apache 2.3.9 Aron Ujvari , Aleksey Midenkov , remaining = get_chunk_size(ctx->chunk_ln); if (ctx->remaining == INVALID_CHAR) { rv = APR_EGENERAL; - http_error = HTTP_SERVICE_UNAVAILABLE; + http_error = HTTP_BAD_REQUEST; } } } @@ -483,7 +483,7 @@ apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b, ctx->remaining = get_chunk_size(ctx->chunk_ln); if (ctx->remaining == INVALID_CHAR) { rv = APR_EGENERAL; - http_error = HTTP_SERVICE_UNAVAILABLE; + http_error = HTTP_BAD_REQUEST; } } } -- 2.40.0