Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4553 - trunk/src/http

Anonymous User
March 22, 2012 06:44AM
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)) {

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] svn commit: r4553 - trunk/src/http

Anonymous User 1283 March 22, 2012 06:44AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 305
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready