comparison src/http/modules/ngx_http_gzip_filter_module.c @ 1543:8596627c4cc5

use ngx_strstrn() and ngx_strcasestrn()
author Igor Sysoev <igor@sysoev.ru>
date Wed, 26 Sep 2007 19:26:14 +0000
parents 3b763d36e055
children 30fcc8478d85
comparison
equal deleted inserted replaced
1542:f5bd1a7ed2cd 1543:8596627c4cc5
277 || (r->headers_out.content_encoding 277 || (r->headers_out.content_encoding
278 && r->headers_out.content_encoding->value.len) 278 && r->headers_out.content_encoding->value.len)
279 || r->headers_in.accept_encoding == NULL 279 || r->headers_in.accept_encoding == NULL
280 || (r->headers_out.content_length_n != -1 280 || (r->headers_out.content_length_n != -1
281 && r->headers_out.content_length_n < conf->min_length) 281 && r->headers_out.content_length_n < conf->min_length)
282 || ngx_strstr(r->headers_in.accept_encoding->value.data, "gzip") == NULL 282 || ngx_strcasestrn(r->headers_in.accept_encoding->value.data, "gzip", 3)
283 ) 283 )
284 { 284 {
285 return ngx_http_next_header_filter(r); 285 return ngx_http_next_header_filter(r);
286 } 286 }
287 287