mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 21:52:41 +08:00
add debug logging
This commit is contained in:
parent
7b9d3ce703
commit
34abdb1683
@ -318,6 +318,10 @@ ngx_http_browser(ngx_http_request_t *r, ngx_http_browser_conf_t *cf)
|
|||||||
if (c == '.') {
|
if (c == '.') {
|
||||||
version += ver * scale;
|
version += ver * scale;
|
||||||
|
|
||||||
|
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
||||||
|
"version: \"%ui\" \"%ui\"",
|
||||||
|
modern[i].version, version);
|
||||||
|
|
||||||
if (version > modern[i].version) {
|
if (version > modern[i].version) {
|
||||||
return NGX_HTTP_MODERN_BROWSER;
|
return NGX_HTTP_MODERN_BROWSER;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user