mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 09:55:56 +08:00
Map: simplified "map" block parser.
No functional changes.
This commit is contained in:
parent
7ef8ca24b5
commit
41f06845cf
@ -393,8 +393,9 @@ ngx_http_map(ngx_conf_t *cf, ngx_command_t *dummy, void *conf)
|
||||
{
|
||||
ctx->hostnames = 1;
|
||||
return NGX_CONF_OK;
|
||||
}
|
||||
|
||||
} else if (cf->args->nelts != 2) {
|
||||
if (cf->args->nelts != 2) {
|
||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||
"invalid number of the map parameters");
|
||||
return NGX_CONF_ERROR;
|
||||
|
@ -392,8 +392,9 @@ ngx_stream_map(ngx_conf_t *cf, ngx_command_t *dummy, void *conf)
|
||||
{
|
||||
ctx->hostnames = 1;
|
||||
return NGX_CONF_OK;
|
||||
}
|
||||
|
||||
} else if (cf->args->nelts != 2) {
|
||||
if (cf->args->nelts != 2) {
|
||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||
"invalid number of the map parameters");
|
||||
return NGX_CONF_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user