From: Ruediger Pluem Date: Wed, 16 Jan 2013 15:37:16 +0000 (+0000) Subject: * A limit of zero means unlimited for LimitRequestBody. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62f17cf15e1db09070fb94e0c40230ef033c83c2;p=thirdparty%2Fapache%2Fhttpd.git * A limit of zero means unlimited for LimitRequestBody. PR: 54435 Submitted by: Pavel Mateja Reviewed by: rpluem git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433988 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 7160234a8b3..c87d2a1093c 100644 --- a/CHANGES +++ b/CHANGES @@ -1,9 +1,12 @@ -*- coding: utf-8 -*- Changes with Apache 2.5.0 + *) mod_proxy_http: Honour special value 0 (unlimited) of LimitRequestBody + PR 54435. [Pavel Mateja ] + *) mod_lua: Add bindings for apr_dbd/mod_dbd database access [Daniel Gruno] - + *) mod_authn_file, mod_authn_dbd, mod_authn_dbm, mod_authn_socache: Cache the result of the most recent password hash verification for every keep-alive connection. This saves some expensive calculations. diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c index 243c9a5e7df..07b5408d3cd 100644 --- a/modules/proxy/mod_proxy_http.c +++ b/modules/proxy/mod_proxy_http.c @@ -587,7 +587,7 @@ static int spool_reqbody_cl(apr_pool_t *p, * Let it take effect if we decide to store the body in a * temporary file on disk. */ - if (bytes_spooled + bytes > limit) { + if (limit && (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);