comparison src/http/modules/ngx_http_static_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 55e496a8ece3
children 69e851f83522
comparison
equal deleted inserted replaced
395:f8f0f1834266 396:6f3b20c1ac50
535 535
536 536
537 static ngx_int_t ngx_http_static_init(ngx_cycle_t *cycle) 537 static ngx_int_t ngx_http_static_init(ngx_cycle_t *cycle)
538 { 538 {
539 ngx_http_handler_pt *h; 539 ngx_http_handler_pt *h;
540 ngx_http_conf_ctx_t *ctx;
541 ngx_http_core_main_conf_t *cmcf; 540 ngx_http_core_main_conf_t *cmcf;
542 541
543 ctx = (ngx_http_conf_ctx_t *) cycle->conf_ctx[ngx_http_module.index]; 542 cmcf = ngx_http_cycle_get_module_main_conf(cycle, ngx_http_core_module);
544 cmcf = ctx->main_conf[ngx_http_core_module.ctx_index];
545 543
546 h = ngx_push_array(&cmcf->phases[NGX_HTTP_CONTENT_PHASE].handlers); 544 h = ngx_push_array(&cmcf->phases[NGX_HTTP_CONTENT_PHASE].handlers);
547 if (h == NULL) { 545 if (h == NULL) {
548 return NGX_ERROR; 546 return NGX_ERROR;
549 } 547 }