From: Igor Sysoev Date: Thu, 8 Oct 2009 14:22:00 +0000 (+0000) Subject: test comma separator in "Cache-Control" X-Git-Tag: release-0.8.20~6 X-Git-Url: http://git.kaiwu.me/%7B@url%7D?a=commitdiff_plain;h=671236993ac3c7e90e76fca8a8d988419686c555;p=nginx.git test comma separator in "Cache-Control" --- diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 86c5af8f4..b95db57a7 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -3035,7 +3035,7 @@ ngx_http_upstream_process_cache_control(ngx_http_request_t *r, n = 0; for (p += 8; p < last; p++) { - if (*p == ';' || *p == ' ') { + if (*p == ',' || *p == ';' || *p == ' ') { break; }