diff src/http/modules/ngx_http_browser_module.c @ 2509:b4661481f198

the $ancient_browser variables did not treat as an ancient browser listed in modern_browser, but has lower version
author Igor Sysoev <igor@sysoev.ru>
date Wed, 18 Feb 2009 09:23:47 +0000
parents 4c43e25d11ea
children fa03c3846ca4
line wrap: on
line diff
--- a/src/http/modules/ngx_http_browser_module.c
+++ b/src/http/modules/ngx_http_browser_module.c
@@ -339,6 +339,8 @@ ngx_http_browser(ngx_http_request_t *r, 
             if (version >= modern[i].version) {
                 return NGX_HTTP_MODERN_BROWSER;
             }
+
+            return NGX_HTTP_ANCIENT_BROWSER;
         }
 
         if (!cf->modern_unlisted_browsers) {