[nginx] svn commit: r4553 - trunk/src/http
mdounin at mdounin.ru
mdounin at mdounin.ru
Thu Mar 22 10:42:27 UTC 2012
Author: mdounin
Date: 2012-03-22 10:42:27 +0000 (Thu, 22 Mar 2012)
New Revision: 4553
URL: http://trac.nginx.org/nginx/changeset/4553/nginx
Log:
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.
Modified:
trunk/src/http/ngx_http_request.c
Modified: trunk/src/http/ngx_http_request.c
===================================================================
--- trunk/src/http/ngx_http_request.c 2012-03-22 10:41:29 UTC (rev 4552)
+++ trunk/src/http/ngx_http_request.c 2012-03-22 10:42:27 UTC (rev 4553)
@@ -1493,7 +1493,9 @@
} 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)) {
More information about the nginx-devel
mailing list