comparison src/http/ngx_http_header_filter.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 6bdf858bff8c
comparison
equal deleted inserted replaced
293:ec3c049681fd 294:5cfd65b8b0a7
203 len += sizeof("Connection: keep-alive" CRLF) - 1; 203 len += sizeof("Connection: keep-alive" CRLF) - 1;
204 } else { 204 } else {
205 len += sizeof("Connection: closed" CRLF) - 1; 205 len += sizeof("Connection: closed" CRLF) - 1;
206 } 206 }
207 207
208 header = r->headers_out.headers->elts; 208 header = r->headers_out.headers.elts;
209 for (i = 0; i < r->headers_out.headers->nelts; i++) { 209 for (i = 0; i < r->headers_out.headers.nelts; i++) {
210 if (header[i].key.len == 0) { 210 if (header[i].key.len == 0) {
211 continue; 211 continue;
212 } 212 }
213 213
214 /* 2 is for ": " and 2 is for "\r\n" */ 214 /* 2 is for ": " and 2 is for "\r\n" */
319 } else { 319 } else {
320 h->last = ngx_cpymem(h->last, "Connection: close" CRLF, 320 h->last = ngx_cpymem(h->last, "Connection: close" CRLF,
321 sizeof("Connection: close" CRLF) - 1); 321 sizeof("Connection: close" CRLF) - 1);
322 } 322 }
323 323
324 for (i = 0; i < r->headers_out.headers->nelts; i++) { 324 for (i = 0; i < r->headers_out.headers.nelts; i++) {
325 if (header[i].key.len == 0) { 325 if (header[i].key.len == 0) {
326 continue; 326 continue;
327 } 327 }
328 328
329 h->last = ngx_cpymem(h->last, header[i].key.data, header[i].key.len); 329 h->last = ngx_cpymem(h->last, header[i].key.data, header[i].key.len);