Mercurial > hg > nginx-mail
comparison src/http/modules/ngx_http_ssi_filter_module.c @ 186:54aabf2b0bc6 NGINX_0_3_40
nginx 0.3.40
*) Feature: the ngx_http_dav_module supports the MKCOL method.
*) Feature: the "create_full_put_path" directive.
*) Feature: the "$limit_rate" variable.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 19 Apr 2006 00:00:00 +0400 |
parents | 71ff1e2b484a |
children | 3689cd4e3228 |
comparison
equal
deleted
inserted
replaced
185:a9c5dc369ffe | 186:54aabf2b0bc6 |
---|---|
260 }; | 260 }; |
261 | 261 |
262 | 262 |
263 static ngx_http_variable_t ngx_http_ssi_vars[] = { | 263 static ngx_http_variable_t ngx_http_ssi_vars[] = { |
264 | 264 |
265 { ngx_string("date_local"), ngx_http_ssi_date_gmt_local_variable, 0, | 265 { ngx_string("date_local"), NULL, ngx_http_ssi_date_gmt_local_variable, 0, |
266 NGX_HTTP_VAR_NOCACHABLE, 0 }, | 266 NGX_HTTP_VAR_NOCACHABLE, 0 }, |
267 | 267 |
268 { ngx_string("date_gmt"), ngx_http_ssi_date_gmt_local_variable, 1, | 268 { ngx_string("date_gmt"), NULL, ngx_http_ssi_date_gmt_local_variable, 1, |
269 NGX_HTTP_VAR_NOCACHABLE, 0 }, | 269 NGX_HTTP_VAR_NOCACHABLE, 0 }, |
270 | 270 |
271 { ngx_null_string, NULL, 0, 0, 0 } | 271 { ngx_null_string, NULL, NULL, 0, 0, 0 } |
272 }; | 272 }; |
273 | 273 |
274 | 274 |
275 | 275 |
276 static ngx_int_t | 276 static ngx_int_t |
2151 var = ngx_http_add_variable(cf, &v->name, v->flags); | 2151 var = ngx_http_add_variable(cf, &v->name, v->flags); |
2152 if (var == NULL) { | 2152 if (var == NULL) { |
2153 return NGX_ERROR; | 2153 return NGX_ERROR; |
2154 } | 2154 } |
2155 | 2155 |
2156 var->handler = v->handler; | 2156 var->get_handler = v->get_handler; |
2157 var->data = v->data; | 2157 var->data = v->data; |
2158 } | 2158 } |
2159 | 2159 |
2160 smcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_ssi_filter_module); | 2160 smcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_ssi_filter_module); |
2161 | 2161 |