From bdc154bb739cd7fdcbcf6d258837e532bdc429b5 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 12 Nov 2009 14:23:18 +0000 Subject: [PATCH] r->chrome --- src/http/ngx_http_request.c | 3 +++ src/http/ngx_http_request.h | 1 + 2 files changed, 4 insertions(+) diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 56eee2643..3f399320b 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -1445,6 +1445,9 @@ ngx_http_process_user_agent(ngx_http_request_t *r, ngx_table_elt_t *h, if (ngx_strstrn(user_agent, "Gecko/", 6 - 1)) { r->headers_in.gecko = 1; + } else if (ngx_strstrn(user_agent, "Chrome/", 7 - 1)) { + r->headers_in.chrome = 1; + } else if (ngx_strstrn(user_agent, "Konqueror", 9 - 1)) { r->headers_in.konqueror = 1; } diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h index ade15a50a..15c0eb94a 100644 --- a/src/http/ngx_http_request.h +++ b/src/http/ngx_http_request.h @@ -220,6 +220,7 @@ typedef struct { unsigned msie6:1; unsigned opera:1; unsigned gecko:1; + unsigned chrome:1; unsigned konqueror:1; } ngx_http_headers_in_t;