Mercurial > hg > nginx
diff 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 |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -1493,14 +1493,14 @@ static char *ngx_set_error_page(ngx_conf return NGX_CONF_ERROR; } - err->code = ngx_atoi(value[i].data, value[i].len); - if (err->code == NGX_ERROR) { + err->status = ngx_atoi(value[i].data, value[i].len); + if (err->status == NGX_ERROR) { ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "invalid value \"%s\"", value[i].data); return NGX_CONF_ERROR; } - if (err->code < 400 || err->code > 599) { + if (err->status < 400 || err->status > 599) { ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "value \"%s\" must be between 400 and 599", value[i].data);