Mercurial > hg > nginx
comparison src/http/modules/ngx_http_headers_filter.c @ 477:ad1e9ebf93bb release-0.1.13
nginx-0.1.13-RELEASE import
*) 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 <igor@sysoev.ru> |
---|---|
date | Tue, 21 Dec 2004 12:30:30 +0000 |
parents | a88a3e4e158f |
children | 64d9afb209da |
comparison
equal
deleted
inserted
replaced
476:7e8b84ab09e9 | 477:ad1e9ebf93bb |
---|---|
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", |