Mercurial > hg > ngx_http_gunzip_filter_module
comparison ngx_http_gunzip_filter_module.c @ 1:0dd7d109e56b
Gunzip: add more tests and improve docs.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sun, 20 Dec 2009 03:55:31 +0300 |
parents | a75d4ad9c5d2 |
children | 5c999acd9436 |
comparison
equal
deleted
inserted
replaced
0:a75d4ad9c5d2 | 1:0dd7d109e56b |
---|---|
124 ngx_http_gunzip_conf_t *conf; | 124 ngx_http_gunzip_conf_t *conf; |
125 | 125 |
126 conf = ngx_http_get_module_loc_conf(r, ngx_http_gunzip_filter_module); | 126 conf = ngx_http_get_module_loc_conf(r, ngx_http_gunzip_filter_module); |
127 | 127 |
128 /* TODO support multiple content-codings */ | 128 /* TODO support multiple content-codings */ |
129 /* TODO always gunzip - due to configuration or module request */ | |
130 /* TODO ignore content encoding? */ | |
129 | 131 |
130 if (!conf->enable | 132 if (!conf->enable |
131 || r->headers_out.content_encoding == NULL | 133 || r->headers_out.content_encoding == NULL |
132 || r->headers_out.content_encoding->value.len != 4 | 134 || r->headers_out.content_encoding->value.len != 4 |
133 || ngx_strncasecmp(r->headers_out.content_encoding->value.data, | 135 || ngx_strncasecmp(r->headers_out.content_encoding->value.data, |