r3313 merge:
nginx sent gzipped responses to clients those do not support gzip,
if "gzip_static on" and "gzip_vary off"; the bug had been introduced in r3250
Igor Sysoev
12 years ago
98 | 98 | return NGX_DECLINED; |
99 | 99 | } |
100 | 100 | |
101 | rc = ngx_http_gzip_ok(r); | |
102 | ||
101 | 103 | clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); |
102 | 104 | |
103 | if (clcf->gzip_vary && ngx_http_gzip_ok(r) != NGX_OK) { | |
105 | if (!clcf->gzip_vary && rc != NGX_OK) { | |
104 | 106 | return NGX_DECLINED; |
105 | 107 | } |
106 | 108 | |
161 | 163 | return NGX_DECLINED; |
162 | 164 | } |
163 | 165 | |
166 | if (rc != NGX_OK) { | |
167 | return NGX_DECLINED; | |
168 | } | |
169 | ||
164 | 170 | ngx_log_debug1(NGX_LOG_DEBUG_HTTP, log, 0, "http static fd: %d", of.fd); |
165 | 171 | |
166 | 172 | if (of.is_dir) { |