test binary geo ranges base only for ranges

This commit is contained in:
Igor Sysoev 2010-06-30 10:05:56 +00:00
parent 4655c721e8
commit e3d88fb8eb

View File

@ -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';