Re: Issue with LimitRequestBody

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 20, 2014 at 5:31 AM, Kalyana sundaram <kalyanceg@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux