httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] Issue with LimitRequestBody
Date Mon, 20 Jan 2014 11:51:53 GMT
On Mon, Jan 20, 2014 at 5:31 AM, Kalyana sundaram <kalyanceg@gmail.com> wrote:
>
> Hi
> I am using httpd-2.2.26. Whenever I use LimitRequestBody directive Apache
> gives 413 to user if content length is greater than the value specified in
> directive but logs as 200. It even appends the response html along with
> error document. This problem happens in httpd-2.4.4 also
> On further debugging 2.2.26 with gdb i found the problem occurs in
> modules/http/http_request.c (ap_process_request) line 291
>
> if (access_status == OK) {
>         ap_finalize_request_protocol(r);
>     }
>     else {
>         r->status = HTTP_OK;
>         ap_die(access_status, r);
>     }

What module are you using to write the response?  ap_die copies the
first paraemter to r->status so you shouldn't need something special.

A 413 triggers an error reading the request body.  If you ignore it,
things go wrong.  If you return the error you receive, it works.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message