comparison src/http/ngx_http_upstream.c @ 536:0dc162a5f3e8 NGINX_0_8_20

nginx 0.8.20 *) Change: now default SSL ciphers are "HIGH:!ADH:!MD5". *) Bugfix: the ngx_http_autoindex_module did not show the trailing slash in links to a directory; the bug had appeared in 0.7.15. *) Bugfix: nginx did not close a log file set by the --error-log-path configuration option; the bug had appeared in 0.7.53. *) Bugfix: nginx did not treat a comma as separator in the "Cache-Control" backend response header line. *) Bugfix: nginx/Windows might not create temporary file, a cache file, or "proxy/fastcgi_store"d file if a worker has no enough access rights for top level directories. *) Bugfix: the "Set-Cookie" and "P3P" FastCGI response header lines were not hidden while caching if no "fastcgi_hide_header" directives were used with any parameters. *) Bugfix: nginx counted incorrectly disk cache size.
author Igor Sysoev <http://sysoev.ru>
date Wed, 14 Oct 2009 00:00:00 +0400
parents 4c5d2c627a6c
children c04fa65fe604
comparison
equal deleted inserted replaced
535:4584144e5de2 536:0dc162a5f3e8
2096 if (valid) { 2096 if (valid) {
2097 r->cache->last_modified = r->headers_out.last_modified_time; 2097 r->cache->last_modified = r->headers_out.last_modified_time;
2098 r->cache->date = now; 2098 r->cache->date = now;
2099 r->cache->body_start = (u_short) (u->buffer.pos - u->buffer.start); 2099 r->cache->body_start = (u_short) (u->buffer.pos - u->buffer.start);
2100 2100
2101 if (r->headers_out.content_length_n != -1) {
2102 r->cache->length = r->cache->body_start
2103 + r->headers_out.content_length_n;
2104 }
2105
2106 ngx_http_file_cache_set_header(r, u->buffer.start); 2101 ngx_http_file_cache_set_header(r, u->buffer.start);
2107 2102
2108 } else { 2103 } else {
2109 u->cacheable = 0; 2104 u->cacheable = 0;
2110 r->headers_out.last_modified_time = -1; 2105 r->headers_out.last_modified_time = -1;
3038 } 3033 }
3039 3034
3040 n = 0; 3035 n = 0;
3041 3036
3042 for (p += 8; p < last; p++) { 3037 for (p += 8; p < last; p++) {
3043 if (*p == ';' || *p == ' ') { 3038 if (*p == ',' || *p == ';' || *p == ' ') {
3044 break; 3039 break;
3045 } 3040 }
3046 3041
3047 if (*p >= '0' && *p <= '9') { 3042 if (*p >= '0' && *p <= '9') {
3048 n = n * 10 + *p - '0'; 3043 n = n * 10 + *p - '0';