summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-09-26 19:26:14 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-09-26 19:26:14 +0000
commit0659720dc87e606498a13e753299396bceb07188 (patch)
tree1bad40c2edb577679df346cf7b9aff72c187a8e1 /src/http/modules
parent1bd987019d4700636e2ded5acfae7a81185a512e (diff)
downloadnginx-0659720dc87e606498a13e753299396bceb07188.tar.gz
nginx-0659720dc87e606498a13e753299396bceb07188.tar.bz2
use ngx_strstrn() and ngx_strcasestrn()
Diffstat (limited to 'src/http/modules')
-rw-r--r--src/http/modules/ngx_http_gzip_filter_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_gzip_filter_module.c b/src/http/modules/ngx_http_gzip_filter_module.c
index 7210dd6fc..d060190c2 100644
--- a/src/http/modules/ngx_http_gzip_filter_module.c
+++ b/src/http/modules/ngx_http_gzip_filter_module.c
@@ -279,7 +279,7 @@ ngx_http_gzip_header_filter(ngx_http_request_t *r)
|| r->headers_in.accept_encoding == NULL
|| (r->headers_out.content_length_n != -1
&& r->headers_out.content_length_n < conf->min_length)
- || ngx_strstr(r->headers_in.accept_encoding->value.data, "gzip") == NULL
+ || ngx_strcasestrn(r->headers_in.accept_encoding->value.data, "gzip", 3)
)
{
return ngx_http_next_header_filter(r);