comparison src/http/modules/ngx_http_gzip_filter.c @ 160:e7e094d34162

nginx-0.0.1-2003-10-27-11:53:49 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 27 Oct 2003 08:53:49 +0000
parents 981e4af2a425
children 84036764e215
comparison
equal deleted inserted replaced
159:981e4af2a425 160:e7e094d34162
166 conf = ngx_http_get_module_loc_conf(r, ngx_http_gzip_filter_module); 166 conf = ngx_http_get_module_loc_conf(r, ngx_http_gzip_filter_module);
167 167
168 if (!conf->enable 168 if (!conf->enable
169 || r->headers_out.status != NGX_HTTP_OK 169 || r->headers_out.status != NGX_HTTP_OK
170 || r->header_only 170 || r->header_only
171 || r->main
172 /* TODO: conf->http_version */ 171 /* TODO: conf->http_version */
173 || (r->headers_out.content_encoding 172 || (r->headers_out.content_encoding
174 && r->headers_out.content_encoding->value.len) 173 && r->headers_out.content_encoding->value.len)
175 || r->headers_in.accept_encoding == NULL 174 || r->headers_in.accept_encoding == NULL
176 || ngx_strstr(r->headers_in.accept_encoding->value.data, "gzip") == NULL 175 || ngx_strstr(r->headers_in.accept_encoding->value.data, "gzip") == NULL