Mercurial > hg > nginx
comparison src/http/modules/ngx_http_map_module.c @ 6831:014905eb7b3d
Map: simplified "map" block parser.
No functional changes.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 08 Dec 2016 17:29:01 +0300 |
parents | db699978a33f |
children | ec10ce307dc0 |
comparison
equal
deleted
inserted
replaced
6830:6eed5ed31e22 | 6831:014905eb7b3d |
---|---|
391 if (cf->args->nelts == 1 | 391 if (cf->args->nelts == 1 |
392 && ngx_strcmp(value[0].data, "hostnames") == 0) | 392 && ngx_strcmp(value[0].data, "hostnames") == 0) |
393 { | 393 { |
394 ctx->hostnames = 1; | 394 ctx->hostnames = 1; |
395 return NGX_CONF_OK; | 395 return NGX_CONF_OK; |
396 | 396 } |
397 } else if (cf->args->nelts != 2) { | 397 |
398 if (cf->args->nelts != 2) { | |
398 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | 399 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, |
399 "invalid number of the map parameters"); | 400 "invalid number of the map parameters"); |
400 return NGX_CONF_ERROR; | 401 return NGX_CONF_ERROR; |
401 } | 402 } |
402 | 403 |