From 3d1c14f162f2939bbd842f81b6bcb2291e0f6929 Mon Sep 17 00:00:00 2001 From: "Sergey A. Osokin" Date: Thu, 10 Jun 2010 07:35:49 +0000 Subject: [PATCH] Fix incompatibility with Nginx 0.7.66 Adds a couple of additional version checks to make the module compatible with Nginx 0.7.66. Signed-off-by: Adrian Perez --- ngx_http_fancyindex_module.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ngx_http_fancyindex_module.c b/ngx_http_fancyindex_module.c index 3642cb1..4d9da11 100644 --- a/ngx_http_fancyindex_module.c +++ b/ngx_http_fancyindex_module.c @@ -617,7 +617,9 @@ ngx_http_fancyindex_handler(ngx_http_request_t *r) } /* TODO: Win32 */ -#if defined(nginx_version) && nginx_version < 8038 +#if defined(nginx_version) \ + && ((nginx_version < 7066) \ + || ((nginx_version > 8000) && (nginx_version < 8038))) if (r->zero_in_uri) { return NGX_DECLINED; }