diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-06-30 10:05:56 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-06-30 10:05:56 +0000 |
commit | e3d88fb8ebfa34e3fd9ab0c32117a2ade523e9f9 (patch) | |
tree | e2f8a3fc953b51a793f4c9a80fbb114ff5db1047 /src | |
parent | 4655c721e86dd33d4e81f14b0930fc6774285524 (diff) | |
download | nginx-e3d88fb8ebfa34e3fd9ab0c32117a2ade523e9f9.tar.gz nginx-e3d88fb8ebfa34e3fd9ab0c32117a2ade523e9f9.zip |
test binary geo ranges base only for ranges
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_geo_module.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/http/modules/ngx_http_geo_module.c b/src/http/modules/ngx_http_geo_module.c index 5883a087c..efa69b3a5 100644 --- a/src/http/modules/ngx_http_geo_module.c +++ b/src/http/modules/ngx_http_geo_module.c @@ -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); - - 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; + 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; + } } file.len -= 4; |