comparison ngx_http_gunzip_filter_module.c @ 9:5c999acd9436 0.2

Gunzip: compatibility with nginx 0.7.65.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 01 Feb 2010 21:42:58 +0300
parents 0dd7d109e56b
children b12d2ee20755
comparison
equal deleted inserted replaced
8:f51185490d02 9:5c999acd9436
136 (u_char *) "gzip", 4) != 0) 136 (u_char *) "gzip", 4) != 0)
137 { 137 {
138 return ngx_http_next_header_filter(r); 138 return ngx_http_next_header_filter(r);
139 } 139 }
140 140
141 #if (nginx_version >= 8025) 141 #if (nginx_version >= 8025 || nginx_version >= 7065)
142 142
143 r->gzip_vary = 1; 143 r->gzip_vary = 1;
144 144
145 if (!r->gzip_tested) { 145 if (!r->gzip_tested) {
146 if (ngx_http_gzip_ok(r) == NGX_OK) { 146 if (ngx_http_gzip_ok(r) == NGX_OK) {