comparison src/http/ngx_http_header_filter.c @ 391:b670db10cbbd

nginx-0.0.7-2004-07-14-20:01:42 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 14 Jul 2004 16:01:42 +0000
parents 2e3cbc1bbe3c
children 5659d773cfa8
comparison
equal deleted inserted replaced
390:1471c6fb108a 391:b670db10cbbd
29 NULL, /* module directives */ 29 NULL, /* module directives */
30 NGX_HTTP_MODULE, /* module type */ 30 NGX_HTTP_MODULE, /* module type */
31 ngx_http_header_filter_init, /* init module */ 31 ngx_http_header_filter_init, /* init module */
32 NULL /* init child */ 32 NULL /* init child */
33 }; 33 };
34
35
36 static ngx_http_output_body_filter_pt write_filter;
34 37
35 38
36 static char server_string[] = "Server: " NGINX_VER CRLF; 39 static char server_string[] = "Server: " NGINX_VER CRLF;
37 40
38 41
353 } 356 }
354 357
355 ln->buf = b; 358 ln->buf = b;
356 ln->next = NULL; 359 ln->next = NULL;
357 360
358 return ngx_http_write_filter(r, ln); 361 return write_filter(r, ln);
359 } 362 }
360 363
361 364
362 static ngx_int_t ngx_http_header_filter_init(ngx_cycle_t *cycle) 365 static ngx_int_t ngx_http_header_filter_init(ngx_cycle_t *cycle)
363 { 366 {
364 ngx_http_top_header_filter = ngx_http_header_filter; 367 ngx_http_top_header_filter = ngx_http_header_filter;
365 368
369 write_filter = ngx_http_top_body_filter;
370
366 return NGX_OK; 371 return NGX_OK;
367 } 372 }