jim         98/08/10 07:37:07

  Modified:    src/main http_core.c
  Log:
  Some cleanups for limit_req_body
  
  Revision  Changes    Path
  1.220     +8 -2      apache-1.3/src/main/http_core.c
  
  Index: http_core.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/main/http_core.c,v
  retrieving revision 1.219
  retrieving revision 1.220
  diff -u -r1.219 -r1.220
  --- http_core.c       1998/08/10 04:16:14     1.219
  +++ http_core.c       1998/08/10 14:37:06     1.220
  @@ -143,6 +143,7 @@
       conf->limit_nproc = NULL;
   #endif
   
  +    conf->limit_req_body = 0;
       conf->sec = ap_make_array(a, 2, sizeof(void *));
   
       return (void *)conf;
  @@ -253,6 +254,9 @@
       }
   #endif
   
  +    if (new->limit_req_body) {
  +        conf->limit_req_body = new->limit_req_body;
  +    }
       conf->sec = ap_append_arrays(a, base->sec, new->sec);
   
       if (new->satisfy != SATISFY_NOSPEC) {
  @@ -2527,8 +2531,10 @@
   #endif
   { "ServerTokens", set_serv_tokens, NULL, RSRC_CONF, TAKE1,
     "Determine tokens displayed in the Server: header - Min(imal), OS or Full" 
},
  -{ "LimitRequestBody", set_limit_req_body, NULL, RSRC_CONF|ACCESS_CONF|OR_ALL,
  -  TAKE1, "Limit (in bytes) on maximum size of request message body" },
  +{ "LimitRequestBody", set_limit_req_body,
  +  (void*)XtOffsetOf(core_dir_config, limit_req_body),
  +  RSRC_CONF|ACCESS_CONF|OR_ALL, TAKE1,
  +  "Limit (in bytes) on maximum size of request message body" },
   { NULL },
   };
   
  
  
  

Reply via email to