]> git.kaiwu.me - nginx.git/commitdiff
the $ancient_browser variables did not treat as an ancient browser
authorIgor Sysoev <igor@sysoev.ru>
Wed, 18 Feb 2009 09:23:47 +0000 (09:23 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 18 Feb 2009 09:23:47 +0000 (09:23 +0000)
listed in modern_browser, but has lower version

src/http/modules/ngx_http_browser_module.c

index 083375ba1e73a202ed437f121d66deed0d2f05e5..390b62f2a72c30fc5489152d74c6ba067527656e 100644 (file)
@@ -339,6 +339,8 @@ ngx_http_browser(ngx_http_request_t *r, ngx_http_browser_conf_t *cf)
             if (version >= modern[i].version) {
                 return NGX_HTTP_MODERN_BROWSER;
             }
+
+            return NGX_HTTP_ANCIENT_BROWSER;
         }
 
         if (!cf->modern_unlisted_browsers) {