Mercurial > hg > nginx
comparison src/http/modules/ngx_http_gzip_filter_module.c @ 3773:a08e8b3832ae
gzip_disable degradation
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 04 Oct 2010 15:03:00 +0000 |
parents | dd1570b6f237 |
children | 5db098f97e0e 4919fb357a5d |
comparison
equal
deleted
inserted
replaced
3772:c1e3cb4c669c | 3773:a08e8b3832ae |
---|---|
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 |