mirror of
https://github.com/nginx/nginx.git
synced 2024-12-28 09:51:04 -06:00
the $ancient_browser variables did not treat as an ancient browser
listed in modern_browser, but has lower version
This commit is contained in:
parent
8a3729da14
commit
7b9d3ce703
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user