nginx-0.0.3-2004-04-26-00:13:21 import
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 3128a76..b7eb951 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c
@@ -1493,14 +1493,14 @@ 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);