comparison src/http/ngx_http_header_filter.c @ 110:152567c11325

nginx-0.0.1-2003-07-02-22:51:41 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 02 Jul 2003 18:51:41 +0000
parents 2e069b6e6920
children d7f606e25b99
comparison
equal deleted inserted replaced
109:a9bc21d63fe4 110:152567c11325
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_pool_t *pool); 14 static int ngx_http_header_filter_init(ngx_cycle_t *cycle, ngx_log_t *log);
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 */
30 ngx_module_t ngx_http_header_filter_module = { 30 ngx_module_t ngx_http_header_filter_module = {
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 */
37 NULL /* rollback module */
36 }; 38 };
37 39
38 40
39 static char server_string[] = "Server: " NGINX_VER CRLF; 41 static char server_string[] = "Server: " NGINX_VER CRLF;
40 42
385 387
386 return ngx_http_write_filter(r, ch); 388 return ngx_http_write_filter(r, ch);
387 } 389 }
388 390
389 391
390 static int ngx_http_header_filter_init(ngx_pool_t *pool) 392 static int ngx_http_header_filter_init(ngx_cycle_t *cycle, ngx_log_t *log)
391 { 393 {
392 ngx_http_top_header_filter = ngx_http_header_filter; 394 ngx_http_top_header_filter = ngx_http_header_filter;
393 return NGX_OK; 395 return NGX_OK;
394 } 396 }