summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-04-19 16:36:08 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-04-19 16:36:08 +0000
commit978dabaf1fdc2c8d190eaae1ff07f5100bf0e245 (patch)
treef7d0ea97ff7276a5a81c28f117751e24ee048e8f /src/http/modules
parent9bfb434d241816749077e21f499b8efd41c3625d (diff)
downloadnginx-978dabaf1fdc2c8d190eaae1ff07f5100bf0e245.tar.gz
nginx-978dabaf1fdc2c8d190eaae1ff07f5100bf0e245.tar.bz2
nginx-0.0.3-2004-04-19-20:36:08 import
Diffstat (limited to 'src/http/modules')
-rw-r--r--src/http/modules/ngx_http_gzip_filter.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/http/modules/ngx_http_gzip_filter.c b/src/http/modules/ngx_http_gzip_filter.c
index cf3910c56..a455fe155 100644
--- a/src/http/modules/ngx_http_gzip_filter.c
+++ b/src/http/modules/ngx_http_gzip_filter.c
@@ -261,7 +261,7 @@ static int ngx_http_gzip_header_filter(ngx_http_request_t *r)
/* TODO: "text/html" -> custom types */
if (r->headers_out.content_type
&& ngx_strncasecmp(r->headers_out.content_type->value.data,
- "text/html", 5) != 0)
+ "text/html", 9) != 0)
{
return ngx_http_next_header_filter(r);
}
@@ -365,22 +365,19 @@ static int ngx_http_gzip_proxied(ngx_http_request_t *r,
if (r->headers_out.cache_control) {
if ((conf->proxied & NGX_HTTP_GZIP_PROXIED_NO_CACHE)
- && ngx_strstr(r->headers_out.cache_control->value.data, "no-cache")
- == NULL)
+ && ngx_strstr(r->headers_out.cache_control->value.data, "no-cache"))
{
return NGX_OK;
}
if ((conf->proxied & NGX_HTTP_GZIP_PROXIED_NO_STORE)
- && ngx_strstr(r->headers_out.cache_control->value.data, "no-store")
- == NULL)
+ && ngx_strstr(r->headers_out.cache_control->value.data, "no-store"))
{
return NGX_OK;
}
if ((conf->proxied & NGX_HTTP_GZIP_PROXIED_PRIVATE)
- && ngx_strstr(r->headers_out.cache_control->value.data, "private")
- == NULL)
+ && ngx_strstr(r->headers_out.cache_control->value.data, "private"))
{
return NGX_OK;
}