diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-11-30 13:15:10 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-11-30 13:15:10 +0000 |
commit | 1cfb972e74c6d61b9cddb729efd130eb71fd66ef (patch) | |
tree | 7aa1bf4f2224a66336d1b6d98bf7217794d113ad /src/http/ngx_http_core_module.c | |
parent | a734e33720c255a4159257014e58df2ed1578acb (diff) | |
download | nginx-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.c | 4 |
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; } |