comparison src/http/modules/ngx_http_gunzip_filter_module.c @ 4888:3abac956f6c8

Gunzip: fixed r->gzip_ok check.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 18 Oct 2012 14:27:40 +0000
parents 3e789581349d
children 41bf14321133
comparison
equal deleted inserted replaced
4887:4b4f4cea6dfb 4888:3abac956f6c8
143 if (!r->gzip_tested) { 143 if (!r->gzip_tested) {
144 if (ngx_http_gzip_ok(r) == NGX_OK) { 144 if (ngx_http_gzip_ok(r) == NGX_OK) {
145 return ngx_http_next_header_filter(r); 145 return ngx_http_next_header_filter(r);
146 } 146 }
147 147
148 } else if (!r->gzip_ok) { 148 } else if (r->gzip_ok) {
149 return ngx_http_next_header_filter(r); 149 return ngx_http_next_header_filter(r);
150 } 150 }
151 151
152 ctx = ngx_pcalloc(r->pool, sizeof(ngx_http_gunzip_ctx_t)); 152 ctx = ngx_pcalloc(r->pool, sizeof(ngx_http_gunzip_ctx_t));
153 if (ctx == NULL) { 153 if (ctx == NULL) {