diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-10-29 17:39:05 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-10-29 17:39:05 +0000 |
commit | 14be46ee9862352fc055da8005e9bdf3dd1bc16e (patch) | |
tree | 6c17dac364e25c5b5bacce1188a5bb73d01b9c87 /src/http/ngx_http_core_module.c | |
parent | b5faed2dc853ee7e6bda6004b16ceedc6c194641 (diff) | |
download | nginx-14be46ee9862352fc055da8005e9bdf3dd1bc16e.tar.gz nginx-14be46ee9862352fc055da8005e9bdf3dd1bc16e.zip |
nginx-0.0.1-2003-10-29-20:39:05 import
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r-- | src/http/ngx_http_core_module.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 3725fb9ec..7ef20aca5 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -519,49 +519,6 @@ int ngx_http_delay_handler(ngx_http_request_t *r) #endif -ngx_table_elt_t *ngx_http_add_header(void *header, - ngx_http_header_t *http_headers) -{ - int i, j; - char *prev; - ngx_table_t *headers; - ngx_table_elt_t *h, *new; - - headers = *(ngx_table_t **) header; - - prev = headers->elts; - - if (!(new = ngx_push_table(headers))) { - return NULL; - } - - if (prev == headers->elts) { - return new; - } - - h = headers->elts; - for (i = 0; i < headers->nelts; i++) { - if (h[i].key.len == 0) { - continue; - } - - for (j = 0; http_headers[j].name.len != 0; j++) { - if (http_headers[j].name.len != h[i].key.len) { - continue; - } - - if (ngx_strcasecmp(http_headers[j].name.data, h[i].key.data) == 0) { - *((ngx_table_elt_t **) - ((char *) &header + http_headers[j].offset)) = &h[i]; - break; - } - } - } - - return new; -} - - static int ngx_http_core_init(ngx_cycle_t *cycle) { #if 0 |