diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-02-20 16:48:59 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-02-20 16:48:59 +0000 |
commit | 0ee5d3c106f98c06dbad8b61f85a7d0c8e65f970 (patch) | |
tree | 54a8e4a8fa1df4371d3e4b4cda5b171cd50460e4 /src/http/modules | |
parent | bb1ba3fa6d8e12074afeea8c27e29699e29fb04e (diff) | |
download | nginx-0ee5d3c106f98c06dbad8b61f85a7d0c8e65f970.tar.gz nginx-0ee5d3c106f98c06dbad8b61f85a7d0c8e65f970.zip |
nginx-0.0.2-2004-02-20-19:48:59 import
Diffstat (limited to 'src/http/modules')
-rw-r--r-- | src/http/modules/ngx_http_gzip_filter.c | 9 | ||||
-rw-r--r-- | src/http/modules/proxy/ngx_http_proxy_handler.h | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/http/modules/ngx_http_gzip_filter.c b/src/http/modules/ngx_http_gzip_filter.c index 34d872ca5..9cf377e33 100644 --- a/src/http/modules/ngx_http_gzip_filter.c +++ b/src/http/modules/ngx_http_gzip_filter.c @@ -10,8 +10,8 @@ typedef struct { int enable; ngx_bufs_t bufs; int level; - int wbits; - int memlevel; + ssize_t wbits; + ssize_t memlevel; int no_buffer; } ngx_http_gzip_conf_t; @@ -667,8 +667,9 @@ static char *ngx_http_gzip_merge_conf(ngx_conf_t *cf, ngx_conf_merge_bufs_value(conf->bufs, prev->bufs, 4, /* STUB: PAGE_SIZE */ 4096); ngx_conf_merge_value(conf->level, prev->level, 1); - ngx_conf_merge_value(conf->wbits, prev->wbits, MAX_WBITS); - ngx_conf_merge_value(conf->memlevel, prev->memlevel, MAX_MEM_LEVEL - 1); + ngx_conf_merge_size_value(conf->wbits, prev->wbits, MAX_WBITS); + ngx_conf_merge_size_value(conf->memlevel, prev->memlevel, + MAX_MEM_LEVEL - 1); ngx_conf_merge_value(conf->no_buffer, prev->no_buffer, 0); return NGX_CONF_OK; diff --git a/src/http/modules/proxy/ngx_http_proxy_handler.h b/src/http/modules/proxy/ngx_http_proxy_handler.h index 43eb5ef2d..62d05489d 100644 --- a/src/http/modules/proxy/ngx_http_proxy_handler.h +++ b/src/http/modules/proxy/ngx_http_proxy_handler.h @@ -65,7 +65,7 @@ typedef struct { int ignore_expires; int lm_factor; - int default_expires; + time_t default_expires; int next_upstream; int use_stale; |