From 0ee5d3c106f98c06dbad8b61f85a7d0c8e65f970 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 20 Feb 2004 16:48:59 +0000 Subject: nginx-0.0.2-2004-02-20-19:48:59 import --- src/http/modules/ngx_http_gzip_filter.c | 9 +++++---- src/http/modules/proxy/ngx_http_proxy_handler.h | 2 +- src/http/ngx_http_file_cache.c | 4 ++++ 3 files changed, 10 insertions(+), 5 deletions(-) (limited to 'src/http') 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; diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c index 038056fb9..10cb3edcf 100644 --- a/src/http/ngx_http_file_cache.c +++ b/src/http/ngx_http_file_cache.c @@ -4,7 +4,11 @@ #include +#if (HAVE_OPENSSL_MD5_H) +#include +#else #include +#endif #if (HAVE_OPENSSL_MD5) #define MD5Init MD5_Init -- cgit