comparison src/http/modules/ngx_http_browser_module.c @ 448:76a79816b771 NGINX_0_7_36

nginx 0.7.36 *) Feature: a preliminary IPv6 support; the "listen" directive of the HTTP module supports IPv6. *) Bugfix: the $ancient_browser variable did not work for browsers preset by a "modern_browser" directives.
author Igor Sysoev <http://sysoev.ru>
date Sat, 21 Feb 2009 00:00:00 +0300
parents 10cc350ed8a1
children f39b9e29530d
comparison
equal deleted inserted replaced
447:40964c811e59 448:76a79816b771
316 } 316 }
317 317
318 if (c == '.') { 318 if (c == '.') {
319 version += ver * scale; 319 version += ver * scale;
320 320
321 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
322 "version: \"%ui\" \"%ui\"",
323 modern[i].version, version);
324
321 if (version > modern[i].version) { 325 if (version > modern[i].version) {
322 return NGX_HTTP_MODERN_BROWSER; 326 return NGX_HTTP_MODERN_BROWSER;
323 } 327 }
324 328
325 ver = 0; 329 ver = 0;
337 modern[i].version, version); 341 modern[i].version, version);
338 342
339 if (version >= modern[i].version) { 343 if (version >= modern[i].version) {
340 return NGX_HTTP_MODERN_BROWSER; 344 return NGX_HTTP_MODERN_BROWSER;
341 } 345 }
346
347 return NGX_HTTP_ANCIENT_BROWSER;
342 } 348 }
343 349
344 if (!cf->modern_unlisted_browsers) { 350 if (!cf->modern_unlisted_browsers) {
345 return NGX_HTTP_ANCIENT_BROWSER; 351 return NGX_HTTP_ANCIENT_BROWSER;
346 } 352 }