aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_browser_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-02-18 09:23:47 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-02-18 09:23:47 +0000
commit7b9d3ce703cf842eff2a0136c1c57602e0623b46 (patch)
tree65f4c12c55a7da572cbf5b038ac5c049ea58147d /src/http/modules/ngx_http_browser_module.c
parent8a3729da14b993a79fe934cc6f6ea0cb2b5a6383 (diff)
downloadnginx-7b9d3ce703cf842eff2a0136c1c57602e0623b46.tar.gz
nginx-7b9d3ce703cf842eff2a0136c1c57602e0623b46.zip
the $ancient_browser variables did not treat as an ancient browser
listed in modern_browser, but has lower version
Diffstat (limited to 'src/http/modules/ngx_http_browser_module.c')
-rw-r--r--src/http/modules/ngx_http_browser_module.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_browser_module.c b/src/http/modules/ngx_http_browser_module.c
index 083375ba1..390b62f2a 100644
--- 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, 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) {