Mercurial > hg > nginx-quic
comparison src/http/ngx_http_core_module.c @ 3982:aab3889c41e9
fix r3981 for case "Accept-Encoding: gzip"
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 01 Aug 2011 11:21:46 +0000 |
parents | 19de03b4217f |
children | 3e51832c8215 |
comparison
equal
deleted
inserted
replaced
3981:77604e9a1ed8 | 3982:aab3889c41e9 |
---|---|
2029 ae = r->headers_in.accept_encoding; | 2029 ae = r->headers_in.accept_encoding; |
2030 if (ae == NULL) { | 2030 if (ae == NULL) { |
2031 return NGX_DECLINED; | 2031 return NGX_DECLINED; |
2032 } | 2032 } |
2033 | 2033 |
2034 if (ae->value.len < 5) { | 2034 if (ae->value.len < sizeof("gzip") - 1) { |
2035 return NGX_DECLINED; | 2035 return NGX_DECLINED; |
2036 } | 2036 } |
2037 | 2037 |
2038 /* | 2038 /* |
2039 * test first for the most common case "gzip,...": | 2039 * test first for the most common case "gzip,...": |