Project

General

Profile

request.patch

liming, 2009-12-30 08:42

View differences:

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