mirror of
https://github.com/nginx/nginx.git
synced 2026-09-01 02:58:40 +00:00
test binary geo ranges base only for ranges
This commit is contained in:
parent
4655c721e8
commit
e3d88fb8eb
1 changed files with 10 additions and 8 deletions
|
|
@ -1103,15 +1103,17 @@ ngx_http_geo_include(ngx_conf_t *cf, ngx_http_geo_conf_ctx_t *ctx,
|
|||
return NGX_CONF_ERROR;
|
||||
}
|
||||
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data);
|
||||
if (ctx->ranges) {
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data);
|
||||
|
||||
switch (ngx_http_geo_include_binary_base(cf, ctx, &file)) {
|
||||
case NGX_OK:
|
||||
return NGX_CONF_OK;
|
||||
case NGX_ERROR:
|
||||
return NGX_CONF_ERROR;
|
||||
default:
|
||||
break;
|
||||
switch (ngx_http_geo_include_binary_base(cf, ctx, &file)) {
|
||||
case NGX_OK:
|
||||
return NGX_CONF_OK;
|
||||
case NGX_ERROR:
|
||||
return NGX_CONF_ERROR;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
file.len -= 4;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue