Mercurial > hg > nginx-quic
comparison src/http/ngx_http_header_filter.c @ 393:5659d773cfa8
nginx-0.0.7-2004-07-15-20:35:51 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 15 Jul 2004 16:35:51 +0000 |
parents | b670db10cbbd |
children | 3c56e834be46 |
comparison
equal
deleted
inserted
replaced
392:d1222d46b3f9 | 393:5659d773cfa8 |
---|---|
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; | |
37 | 34 |
38 | 35 |
39 static char server_string[] = "Server: " NGINX_VER CRLF; | 36 static char server_string[] = "Server: " NGINX_VER CRLF; |
40 | 37 |
41 | 38 |
356 } | 353 } |
357 | 354 |
358 ln->buf = b; | 355 ln->buf = b; |
359 ln->next = NULL; | 356 ln->next = NULL; |
360 | 357 |
361 return write_filter(r, ln); | 358 return ngx_http_write_filter(r, ln); |
362 } | 359 } |
363 | 360 |
364 | 361 |
365 static ngx_int_t ngx_http_header_filter_init(ngx_cycle_t *cycle) | 362 static ngx_int_t ngx_http_header_filter_init(ngx_cycle_t *cycle) |
366 { | 363 { |
367 ngx_http_top_header_filter = ngx_http_header_filter; | 364 ngx_http_top_header_filter = ngx_http_header_filter; |
368 | 365 |
369 write_filter = ngx_http_top_body_filter; | |
370 | |
371 return NGX_OK; | 366 return NGX_OK; |
372 } | 367 } |