浏览代码

merge r25078 to release-1.12

git-svn-id: http://framework.zend.com/svn/framework/standard/branches/release-1.12@25079 44c647ce-9c0f-0410-b52a-842ac1e357ba
rob 13 年之前
父节点
当前提交
1e158aa35f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      library/Zend/Http/Response.php

+ 1 - 1
library/Zend/Http/Response.php

@@ -641,7 +641,7 @@ class Zend_Http_Response
          * @link http://framework.zend.com/issues/browse/ZF-6040
          */
         $zlibHeader = unpack('n', substr($body, 0, 2));
-        if ($zlibHeader[1] % 31 == 0) {
+        if ($zlibHeader[1] % 31 == 0 && ord($body[0]) == 0x78 && in_array(ord($body[1]), array(0x01, 0x5e, 0x9c, 0xda)) {
             return gzuncompress($body);
         } else {
             return gzinflate($body);