comparison src/http/modules/ngx_http_status_handler.c @ 396:6f3b20c1ac50

nginx-0.0.7-2004-07-18-23:11:20 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 18 Jul 2004 19:11:20 +0000
parents 9c2515d70489
children 3c56e834be46
comparison
equal deleted inserted replaced
395:f8f0f1834266 396:6f3b20c1ac50
297 } 297 }
298 298
299 299
300 static char *ngx_http_set_status(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) 300 static char *ngx_http_set_status(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
301 { 301 {
302 ngx_http_conf_ctx_t *ctx;
303 ngx_http_core_loc_conf_t *clcf; 302 ngx_http_core_loc_conf_t *clcf;
304 303
305 ctx = cf->ctx; 304 clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module);
306 clcf = ctx->loc_conf[ngx_http_core_module.ctx_index];
307 clcf->handler = ngx_http_status_handler; 305 clcf->handler = ngx_http_status_handler;
308 306
309 return NGX_CONF_OK; 307 return NGX_CONF_OK;
310 } 308 }