aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2012-03-22 10:42:27 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2012-03-22 10:42:27 +0000
commitae11f08cadf7b3ae01556115efdbce272c0fedb7 (patch)
tree9d7d1c412bed74bb127e74c667ceeebe078b2367 /src/http/ngx_http_request.c
parentdc863179a39c1e3927f0bcafad04018c0b763c2b (diff)
downloadnginx-ae11f08cadf7b3ae01556115efdbce272c0fedb7.tar.gz
nginx-ae11f08cadf7b3ae01556115efdbce272c0fedb7.zip
Restricted keepalive_disable safari to OS X only.
The problem doesn't affect non-Apple systems for sure, and many pretend to be Safari now. Prodded by Piotr Sikora.
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index a8515f376..441517ea4 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -1493,7 +1493,9 @@ ngx_http_process_user_agent(ngx_http_request_t *r, ngx_table_elt_t *h,
} else if (ngx_strstrn(user_agent, "Chrome/", 7 - 1)) {
r->headers_in.chrome = 1;
- } else if (ngx_strstrn(user_agent, "Safari/", 7 - 1)) {
+ } else if (ngx_strstrn(user_agent, "Safari/", 7 - 1)
+ && ngx_strstrn(user_agent, "Mac OS X", 8 - 1))
+ {
r->headers_in.safari = 1;
} else if (ngx_strstrn(user_agent, "Konqueror", 9 - 1)) {