comparison src/http/modules/ngx_http_gzip_filter_module.c @ 602:c5122335e41d NGINX_0_8_53

nginx 0.8.53 *) Feature: now the "error_page" directive allows to change a status code in a redirect. *) Feature: the "gzip_disable" directive supports special "degradation" mask. *) Bugfix: a socket leak might occurred if file AIO was used. Thanks to Maxim Dounin. *) Bugfix: if the first server had no "listen" directive and there was no explicit default server, then a next server with a "listen" directive became the default server; the bug had appeared in 0.8.21.
author Igor Sysoev <http://sysoev.ru>
date Mon, 18 Oct 2010 00:00:00 +0400
parents 8246d8a2c2be
children eb208e0cf44d
comparison
equal deleted inserted replaced
601:b2afd36d87f4 602:c5122335e41d
256 return ngx_http_next_header_filter(r); 256 return ngx_http_next_header_filter(r);
257 } 257 }
258 258
259 r->gzip_vary = 1; 259 r->gzip_vary = 1;
260 260
261 #if (NGX_HTTP_DEGRADATION)
262 {
263 ngx_http_core_loc_conf_t *clcf;
264
265 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
266
267 if (clcf->gzip_disable_degradation && ngx_http_degraded(r)) {
268 return ngx_http_next_header_filter(r);
269 }
270 }
271 #endif
272
261 if (!r->gzip_tested) { 273 if (!r->gzip_tested) {
262 if (ngx_http_gzip_ok(r) != NGX_OK) { 274 if (ngx_http_gzip_ok(r) != NGX_OK) {
263 return ngx_http_next_header_filter(r); 275 return ngx_http_next_header_filter(r);
264 } 276 }
265 277