Mercurial > hg > nginx
comparison src/http/ngx_http_header_filter.c @ 113:d7f606e25b99
nginx-0.0.1-2003-07-04-19:10:33 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 04 Jul 2003 15:10:33 +0000 |
parents | 152567c11325 |
children | e29909bd9b8a |
comparison
equal
deleted
inserted
replaced
112:da763a85be66 | 113:d7f606e25b99 |
---|---|
9 #include <ngx_freebsd_init.h> | 9 #include <ngx_freebsd_init.h> |
10 #endif | 10 #endif |
11 | 11 |
12 | 12 |
13 | 13 |
14 static int ngx_http_header_filter_init(ngx_cycle_t *cycle, ngx_log_t *log); | 14 static int ngx_http_header_filter_init(ngx_cycle_t *cycle); |
15 static int ngx_http_header_filter(ngx_http_request_t *r); | 15 static int ngx_http_header_filter(ngx_http_request_t *r); |
16 | 16 |
17 | 17 |
18 static ngx_http_module_t ngx_http_header_filter_module_ctx = { | 18 static ngx_http_module_t ngx_http_header_filter_module_ctx = { |
19 NULL, /* create main configuration */ | 19 NULL, /* create main configuration */ |
31 NGX_MODULE, | 31 NGX_MODULE, |
32 &ngx_http_header_filter_module_ctx, /* module context */ | 32 &ngx_http_header_filter_module_ctx, /* module context */ |
33 NULL, /* module directives */ | 33 NULL, /* module directives */ |
34 NGX_HTTP_MODULE, /* module type */ | 34 NGX_HTTP_MODULE, /* module type */ |
35 ngx_http_header_filter_init, /* init module */ | 35 ngx_http_header_filter_init, /* init module */ |
36 NULL, /* commit module */ | 36 NULL /* init child */ |
37 NULL /* rollback module */ | |
38 }; | 37 }; |
39 | 38 |
40 | 39 |
41 static char server_string[] = "Server: " NGINX_VER CRLF; | 40 static char server_string[] = "Server: " NGINX_VER CRLF; |
42 | 41 |
387 | 386 |
388 return ngx_http_write_filter(r, ch); | 387 return ngx_http_write_filter(r, ch); |
389 } | 388 } |
390 | 389 |
391 | 390 |
392 static int ngx_http_header_filter_init(ngx_cycle_t *cycle, ngx_log_t *log) | 391 static int ngx_http_header_filter_init(ngx_cycle_t *cycle) |
393 { | 392 { |
394 ngx_http_top_header_filter = ngx_http_header_filter; | 393 ngx_http_top_header_filter = ngx_http_header_filter; |
395 return NGX_OK; | 394 return NGX_OK; |
396 } | 395 } |