Klaus Demo nginx / bf6c11e
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 10 years ago
1 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
9898 return NGX_DECLINED;
9999 }
100100
101 rc = ngx_http_gzip_ok(r);
102
101103 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
102104
103 if (clcf->gzip_vary && ngx_http_gzip_ok(r) != NGX_OK) {
105 if (!clcf->gzip_vary && rc != NGX_OK) {
104106 return NGX_DECLINED;
105107 }
106108
161163 return NGX_DECLINED;
162164 }
163165
166 if (rc != NGX_OK) {
167 return NGX_DECLINED;
168 }
169
164170 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, log, 0, "http static fd: %d", of.fd);
165171
166172 if (of.is_dir) {