comparison src/http/modules/ngx_http_proxy_module.c @ 812:3298810a0198

axe unused code
author Igor Sysoev <igor@sysoev.ru>
date Wed, 25 Oct 2006 14:13:27 +0000
parents bae59a740c40
children ebab9490204c
comparison
equal deleted inserted replaced
811:35454083769f 812:3298810a0198
2103 != NGX_OK) 2103 != NGX_OK)
2104 { 2104 {
2105 return NGX_CONF_ERROR; 2105 return NGX_CONF_ERROR;
2106 } 2106 }
2107 2107
2108
2109 #if 0
2110 conf->headers_set_hash = ngx_pcalloc(cf->pool, sizeof(ngx_hash0_t));
2111 if (conf->headers_set_hash == NULL) {
2112 return NGX_CONF_ERROR;
2113 }
2114
2115 conf->headers_set_hash->max_size = 100;
2116 conf->headers_set_hash->bucket_limit = 1;
2117 conf->headers_set_hash->bucket_size = sizeof(ngx_str_t);
2118 conf->headers_set_hash->name = "proxy_headers";
2119
2120 if (ngx_hash0_init(conf->headers_set_hash, cf->pool,
2121 conf->headers_names->elts, conf->headers_names->nelts)
2122 != NGX_OK)
2123 {
2124 return NGX_CONF_ERROR;
2125 }
2126
2127 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, cf->log, 0,
2128 "proxy_headers hash size: %ui, "
2129 "max buckets per entry: %ui",
2130 conf->headers_set_hash->hash_size,
2131 conf->headers_set_hash->min_buckets);
2132 #endif
2133
2134 return NGX_CONF_OK; 2108 return NGX_CONF_OK;
2135 } 2109 }
2136 2110
2137 2111
2138 static char * 2112 static char *