comparison src/http/modules/ngx_http_headers_filter_module.c @ 382:984bb0b1399b NGINX_0_7_3

nginx 0.7.3 *) Change: the "rss" extension MIME type has been changed to "application/rss+xml". *) Change: now the "gzip_vary" directive turned on issues a "Vary: Accept-Encoding" header line for uncompressed responses too. *) Feature: now the "rewrite" directive does a redirect automatically if the "https://" protocol is used. *) Bugfix: the "proxy_pass" directive did not work with the HTTPS protocol; the bug had appeared in 0.6.9.
author Igor Sysoev <http://sysoev.ru>
date Mon, 23 Jun 2008 00:00:00 +0400
parents edf1cb6c328e
children 05981f639d21
comparison
equal deleted inserted replaced
381:23d1555141d9 382:984bb0b1399b
262 cc->value.data = (u_char *) "max-age=315360000"; 262 cc->value.data = (u_char *) "max-age=315360000";
263 263
264 return NGX_OK; 264 return NGX_OK;
265 } 265 }
266 266
267 expires->value.data = ngx_palloc(r->pool, len); 267 expires->value.data = ngx_pnalloc(r->pool, len);
268 if (expires->value.data == NULL) { 268 if (expires->value.data == NULL) {
269 return NGX_ERROR; 269 return NGX_ERROR;
270 } 270 }
271 271
272 if (conf->expires_time == 0) { 272 if (conf->expires_time == 0) {
295 cc->value.data = (u_char *) "no-cache"; 295 cc->value.data = (u_char *) "no-cache";
296 296
297 return NGX_OK; 297 return NGX_OK;
298 } 298 }
299 299
300 cc->value.data = ngx_palloc(r->pool, 300 cc->value.data = ngx_pnalloc(r->pool,
301 sizeof("max-age=") + NGX_TIME_T_LEN + 1); 301 sizeof("max-age=") + NGX_TIME_T_LEN + 1);
302 if (cc->value.data == NULL) { 302 if (cc->value.data == NULL) {
303 return NGX_ERROR; 303 return NGX_ERROR;
304 } 304 }
305 305
306 cc->value.len = ngx_sprintf(cc->value.data, "max-age=%T", 306 cc->value.len = ngx_sprintf(cc->value.data, "max-age=%T",