Mercurial > hg > nginx
comparison src/http/modules/ngx_http_geo_module.c @ 3654:b56935e34273
test binary geo ranges base only for ranges
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 30 Jun 2010 10:05:56 +0000 |
parents | be3f716ba546 |
children | ec20f1f93aea |
comparison
equal
deleted
inserted
replaced
3653:be3f716ba546 | 3654:b56935e34273 |
---|---|
1101 | 1101 |
1102 if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK) { | 1102 if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK) { |
1103 return NGX_CONF_ERROR; | 1103 return NGX_CONF_ERROR; |
1104 } | 1104 } |
1105 | 1105 |
1106 ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data); | 1106 if (ctx->ranges) { |
1107 | 1107 ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data); |
1108 switch (ngx_http_geo_include_binary_base(cf, ctx, &file)) { | 1108 |
1109 case NGX_OK: | 1109 switch (ngx_http_geo_include_binary_base(cf, ctx, &file)) { |
1110 return NGX_CONF_OK; | 1110 case NGX_OK: |
1111 case NGX_ERROR: | 1111 return NGX_CONF_OK; |
1112 return NGX_CONF_ERROR; | 1112 case NGX_ERROR: |
1113 default: | 1113 return NGX_CONF_ERROR; |
1114 break; | 1114 default: |
1115 break; | |
1116 } | |
1115 } | 1117 } |
1116 | 1118 |
1117 file.len -= 4; | 1119 file.len -= 4; |
1118 file.data[file.len] = '\0'; | 1120 file.data[file.len] = '\0'; |
1119 | 1121 |