Mercurial > hg > nginx
diff src/http/ngx_http_upstream.c @ 2667:c1ac00c2bc75
update r2664
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 04 Apr 2009 17:22:26 +0000 |
parents | 81556a9b6488 |
children | 5e4d8bd4486c |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c Fri Apr 03 15:48:19 2009 +0000 +++ b/src/http/ngx_http_upstream.c Sat Apr 04 17:22:26 2009 +0000 @@ -2891,25 +2891,22 @@ switch (n) { case 0: r->upstream->cacheable = 0; - break; - case NGX_ERROR: - break; + return NGX_OK; default: r->cache->valid_sec = ngx_time() + n; - break; + return NGX_OK; } - - } else { - p++; - len--; - - n = ngx_atoi(p, len); - - if (n != NGX_ERROR) { - r->cache->valid_sec = n; - } + } + + p++; + len--; + + n = ngx_atoi(p, len); + + if (n != NGX_ERROR) { + r->cache->valid_sec = n; } return NGX_OK;