comparison src/http/modules/ngx_http_headers_filter_module.c @ 560:daf4847b43ff NGINX_0_8_32

nginx 0.8.32 *) Bugfix: UTF-8 encoding usage in the ngx_http_autoindex_module. Thanks to Maxim Dounin. *) Bugfix: regular expression named captures worked for two names only. Thanks to Maxim Dounin. *) Bugfix: now the "localhost" name is used in the "Host" request header line, if an unix domain socket is defined in the "auth_http" directive. Thanks to Maxim Dounin. *) Bugfix: nginx did nor support chunked transfer encoding for 201 responses. Thanks to Julian Reich. *) Bugfix: if the "expires modified" set date in the past, the a negative number was set in the "Cache-Control" response header line. Thanks to Alex Kapranoff.
author Igor Sysoev <http://sysoev.ru>
date Mon, 11 Jan 2010 00:00:00 +0300
parents f39b9e29530d
children 8246d8a2c2be
comparison
equal deleted inserted replaced
559:6026569dbf64 560:daf4847b43ff
289 max_age = expires_time - now; 289 max_age = expires_time - now;
290 } 290 }
291 291
292 ngx_http_time(expires->value.data, expires_time); 292 ngx_http_time(expires->value.data, expires_time);
293 293
294 if (conf->expires_time < 0) { 294 if (conf->expires_time < 0 || max_age < 0) {
295 cc->value.len = sizeof("no-cache") - 1; 295 cc->value.len = sizeof("no-cache") - 1;
296 cc->value.data = (u_char *) "no-cache"; 296 cc->value.data = (u_char *) "no-cache";
297 297
298 return NGX_OK; 298 return NGX_OK;
299 } 299 }