]> git.kaiwu.me - nginx.git/commitdiff
do not disable gzip for MSIE 6.0 SV1 in "gzip_disable msie6"
authorIgor Sysoev <igor@sysoev.ru>
Fri, 28 Aug 2009 08:19:02 +0000 (08:19 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 28 Aug 2009 08:19:02 +0000 (08:19 +0000)
src/http/ngx_http_request.c

index 5f46e61cce7f44c10367a15f2c1484bdee482b1d..187310b968fcf375de50dd1ac9192b78ac5a505c 100644 (file)
@@ -1386,8 +1386,13 @@ ngx_http_process_user_agent(ngx_http_request_t *r, ngx_table_elt_t *h,
                 r->headers_in.msie4 = 1;
                 /* fall through */
             case '5':
-            case '6':
                 r->headers_in.msie6 = 1;
+                break;
+            case '6':
+                if (ngx_strstrn(msie + 8, "SV1", 3 - 1) == NULL) {
+                    r->headers_in.msie6 = 1;
+                }
+                break;
             }
         }