# HG changeset patch # User Igor Sysoev # Date 1255011720 0 # Node ID 48bfb7dc981b1f7a0d83bdb2a5c05ca9ba56f2e6 # Parent d5d1ad05d3a6ada0e574e4099896906e505eb7e7 test comma separator in "Cache-Control" diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -3035,7 +3035,7 @@ ngx_http_upstream_process_cache_control( n = 0; for (p += 8; p < last; p++) { - if (*p == ';' || *p == ' ') { + if (*p == ',' || *p == ';' || *p == ' ') { break; }