comparison src/core/ngx_hash.c @ 2195:a953f73273ee

server_name "" support
author Igor Sysoev <igor@sysoev.ru>
date Thu, 21 Aug 2008 12:56:10 +0000
parents 80924319ba05
children 23706c19fab8
comparison
equal deleted inserted replaced
2194:d3f833da6b65 2195:a953f73273ee
218 if (value) { 218 if (value) {
219 return value; 219 return value;
220 } 220 }
221 } 221 }
222 222
223 if (len == 0) {
224 return NULL;
225 }
226
223 if (hash->wc_head && hash->wc_head->hash.buckets) { 227 if (hash->wc_head && hash->wc_head->hash.buckets) {
224 value = ngx_hash_find_wc_head(hash->wc_head, name, len); 228 value = ngx_hash_find_wc_head(hash->wc_head, name, len);
225 229
226 if (value) { 230 if (value) {
227 return value; 231 return value;