aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-11-30 13:15:10 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-11-30 13:15:10 +0000
commit1cfb972e74c6d61b9cddb729efd130eb71fd66ef (patch)
tree7aa1bf4f2224a66336d1b6d98bf7217794d113ad /src/http/ngx_http_core_module.c
parenta734e33720c255a4159257014e58df2ed1578acb (diff)
downloadnginx-1cfb972e74c6d61b9cddb729efd130eb71fd66ef.tar.gz
nginx-1cfb972e74c6d61b9cddb729efd130eb71fd66ef.zip
support "*" in gzip_types, ssi_types, etc
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index b88df336b..1766e1298 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -1572,6 +1572,10 @@ ngx_http_test_content_type(ngx_http_request_t *r, ngx_hash_t *types_hash)
size_t len;
ngx_uint_t i, hash;
+ if (types_hash->size == 0) {
+ return (void *) 4;
+ }
+
if (r->headers_out.content_type.len == 0) {
return NULL;
}