https://issues.apache.org/bugzilla/show_bug.cgi?id=54039
Priority: P2
Bug ID: 54039
Assignee: [email protected]
Summary: "HTTP entity too large" with no limit on the request
body size
Severity: normal
Classification: Unclassified
OS: Linux
Reporter: [email protected]
Hardware: PC
Status: NEW
Version: 2.4.3
Component: mod_proxy_http
Product: Apache httpd-2
Hi.
While making some tests on an Apache 2.4.3, I found something which looks like
a bug to me (but maybe I'm wrong?).
The default value for "LimitRequestBody" directive is zero, which means "no
limit". But, when you send a "big" request, you receive a 413 error code.
This comes from the file "mod_proxy_http.c", line 590, and a fix could be:
--- a/src/modules/proxy/mod_proxy_http.c
+++ b/src/modules/proxy/mod_proxy_http.c
@@ -587,7 +587,7 @@
* Let it take effect if we decide to store the body in a
* temporary file on disk.
*/
- if (bytes_spooled + bytes > limit) {
+ if ((limit > 0) && (bytes_spooled + bytes > limit)) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01088)
"Request body is larger than the configured "
"limit of %" APR_OFF_T_FMT, limit);
return HTTP_REQUEST_ENTITY_TOO_LARGE;
}
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]