Mercurial > hg > nginx
comparison src/http/ngx_http_headers.c @ 294:5cfd65b8b0a7
nginx-0.0.3-2004-03-23-09:01:52 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 23 Mar 2004 06:01:52 +0000 |
parents | 87e73f067470 |
children | 98f1a8028067 |
comparison
equal
deleted
inserted
replaced
293:ec3c049681fd | 294:5cfd65b8b0a7 |
---|---|
58 | 58 |
59 | 59 |
60 ngx_table_elt_t *ngx_http_add_header(void *header, | 60 ngx_table_elt_t *ngx_http_add_header(void *header, |
61 ngx_http_header_t *http_headers) | 61 ngx_http_header_t *http_headers) |
62 { | 62 { |
63 char *prev; | 63 void *prev; |
64 ngx_uint_t i, j; | 64 ngx_uint_t i, j; |
65 ngx_table_t *headers; | 65 ngx_table_t *headers; |
66 ngx_table_elt_t *h, *new; | 66 ngx_table_elt_t *h, *new; |
67 | 67 |
68 headers = *(ngx_table_t **) header; | 68 headers = header; |
69 | 69 |
70 prev = headers->elts; | 70 prev = headers->elts; |
71 | 71 |
72 if (!(new = ngx_push_table(headers))) { | 72 if (!(new = ngx_push_table(headers))) { |
73 return NULL; | 73 return NULL; |