Mercurial > hg > nginx-mail
comparison src/http/modules/ngx_http_headers_filter.c @ 26:45fe5b98a9de NGINX_0_1_13
nginx 0.1.13
*) Feature: the server_names_hash and server_names_hash_threshold
directives.
*) Bugfix: the *.domain.tld names in the "server_name" directive did
not work.
*) Bugfix: the %request_length log parameter logged the incorrect
length.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 21 Dec 2004 00:00:00 +0300 |
parents | 46833bd150cb |
children | 6cfc63e68377 |
comparison
equal
deleted
inserted
replaced
25:21488c53e135 | 26:45fe5b98a9de |
---|---|
126 if (conf->expires < 0) { | 126 if (conf->expires < 0) { |
127 cc->value.len = sizeof("no-cache") - 1; | 127 cc->value.len = sizeof("no-cache") - 1; |
128 cc->value.data = (u_char *) "no-cache"; | 128 cc->value.data = (u_char *) "no-cache"; |
129 | 129 |
130 } else { | 130 } else { |
131 cc->value.data = ngx_palloc(r->pool, | 131 cc->value.data = ngx_palloc(r->pool, sizeof("max-age=") |
132 sizeof("max-age=") + TIME_T_LEN + 1); | 132 + NGX_TIME_T_LEN + 1); |
133 if (cc->value.data == NULL) { | 133 if (cc->value.data == NULL) { |
134 return NGX_ERROR; | 134 return NGX_ERROR; |
135 } | 135 } |
136 | 136 |
137 cc->value.len = ngx_sprintf(cc->value.data, "max-age=%T", | 137 cc->value.len = ngx_sprintf(cc->value.data, "max-age=%T", |