mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 13:42:55 +08:00
test binary geo ranges base only for ranges
This commit is contained in:
parent
4655c721e8
commit
e3d88fb8eb
@ -1103,6 +1103,7 @@ ngx_http_geo_include(ngx_conf_t *cf, ngx_http_geo_conf_ctx_t *ctx,
|
|||||||
return NGX_CONF_ERROR;
|
return NGX_CONF_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ctx->ranges) {
|
||||||
ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data);
|
ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data);
|
||||||
|
|
||||||
switch (ngx_http_geo_include_binary_base(cf, ctx, &file)) {
|
switch (ngx_http_geo_include_binary_base(cf, ctx, &file)) {
|
||||||
@ -1113,6 +1114,7 @@ ngx_http_geo_include(ngx_conf_t *cf, ngx_http_geo_conf_ctx_t *ctx,
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
file.len -= 4;
|
file.len -= 4;
|
||||||
file.data[file.len] = '\0';
|
file.data[file.len] = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user