Project

General

Profile

Bug #2131 ยป request.patch

liming, 2009-12-30 08:42

View differences:

request.c.new 2009-12-30 16:34:22.000000000 +0800
if (con->request.content_length != -1) {
/* divide by 1024 as srvconf.max_request_size is in kBytes */
if (srv->srvconf.max_request_size != 0 &&
((size_t)(con->request.content_length >> 10)) > srv->srvconf.max_request_size) {
con->request.content_length > (srv->srvconf.max_request_size << 10)) {
/* the request body itself is larger then
* our our max_request_size
*/
    (1-1/1)