mirror of
https://github.com/nginx/nginx.git
synced 2024-12-23 15:40:03 -06:00
r->chrome
This commit is contained in:
parent
0338645ecf
commit
bdc154bb73
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user