1335,1383d1334
< 			// check if there is a contect length in the request (might not have !)
< 			if ( ap_table_get(r->headers_in, "Content-Length") != NULL ) 
< 			{
< 				long requestLength = atol(ap_table_get(r->headers_in, "Content-Length")) ;
< 				if (requestLength != 0 )
< 				{
< 					server_rec *s = r->server;
< 
< 					jk_logger_t *l = conf->log ? conf->log : main_log;
< 
< 					long max = 0 ;
< 					// get the defenition from the JkEnvVar JkLimitRequestBody
< 					const char* maxLength= ap_table_get(conf->envvars,"JkLimitRequestBody");
< 					// apachs LimitRequestBody Value
< 					long apacheLimit = ap_get_limit_req_body(r) ;
< 					jk_log(l, JK_LOG_DEBUG, 
< 							"mod_jk :: Apache LimitRequestBody is %d \n",apacheLimit);    
< 
< 				
< 					if (maxLength != NULL )
< 					{
< 						// check if to use apache's limit
< 						if (0 == strcmp("apache",maxLength))
< 							max = apacheLimit ;
< 						else
< 							max = atol(maxLength) ;
< 					}
< 
< 
< 				    jk_log(l, JK_LOG_DEBUG, 
< 					   "mod_jk:: AllowedRequestSize is  %d , current Request %d\n",max,requestLength);    
< 
< 					// if max defined is 0 allow 
< 					if (max == 0 || requestLength <  max )
< 					{	
< 					    jk_log(l, JK_LOG_DEBUG, 
< 						   "mod_jk:: Request authorized to pass length limitation");    
< 
< 					}
< 					else
< 					{
< 						
< 					    jk_log(l, JK_LOG_DEBUG, 
< 						   "mod_jk:: Request declined to pass length limitation");    
< 						return DECLINED ;
< 					}
< 				}
< 			}
< 
