comparison src/http/ngx_http_core_module.c @ 326:8733703a37f3

nginx-0.0.3-2004-04-26-00:13:21 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 25 Apr 2004 20:13:21 +0000
parents ba876b26b76d
children af451db3fe99
comparison
equal deleted inserted replaced
325:7c3323909107 326:8733703a37f3
1491 for (i = 1; i < cf->args->nelts - n; i++) { 1491 for (i = 1; i < cf->args->nelts - n; i++) {
1492 if (!(err = ngx_push_array(lcf->error_pages))) { 1492 if (!(err = ngx_push_array(lcf->error_pages))) {
1493 return NGX_CONF_ERROR; 1493 return NGX_CONF_ERROR;
1494 } 1494 }
1495 1495
1496 err->code = ngx_atoi(value[i].data, value[i].len); 1496 err->status = ngx_atoi(value[i].data, value[i].len);
1497 if (err->code == NGX_ERROR) { 1497 if (err->status == NGX_ERROR) {
1498 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 1498 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
1499 "invalid value \"%s\"", value[i].data); 1499 "invalid value \"%s\"", value[i].data);
1500 return NGX_CONF_ERROR; 1500 return NGX_CONF_ERROR;
1501 } 1501 }
1502 1502
1503 if (err->code < 400 || err->code > 599) { 1503 if (err->status < 400 || err->status > 599) {
1504 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 1504 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
1505 "value \"%s\" must be between 400 and 599", 1505 "value \"%s\" must be between 400 and 599",
1506 value[i].data); 1506 value[i].data);
1507 return NGX_CONF_ERROR; 1507 return NGX_CONF_ERROR;
1508 } 1508 }