]> git.kaiwu.me - nginx.git/commitdiff
test comma separator in "Cache-Control"
authorIgor Sysoev <igor@sysoev.ru>
Thu, 8 Oct 2009 14:22:00 +0000 (14:22 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 8 Oct 2009 14:22:00 +0000 (14:22 +0000)
src/http/ngx_http_upstream.c

index 86c5af8f49d55e8c6e15aa187b3b390710febc55..b95db57a7264bf3e16ea15c69d328aac2d9fd38e 100644 (file)
@@ -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;
         }