diff -r 2251fb41dbc7 -r 1e110b03ae96 web/lib/Zend/Http/Response.php --- a/web/lib/Zend/Http/Response.php Sun Apr 21 10:07:03 2013 +0200 +++ b/web/lib/Zend/Http/Response.php Sun Apr 21 21:54:24 2013 +0200 @@ -16,8 +16,8 @@ * @category Zend * @package Zend_Http * @subpackage Response - * @version $Id: Response.php 22810 2010-08-08 10:29:09Z shahar $ - * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @version $Id: Response.php 25081 2012-11-06 20:59:47Z rob $ + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ @@ -28,7 +28,7 @@ * * @package Zend_Http * @subpackage Response - * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ class Zend_Http_Response @@ -165,7 +165,7 @@ require_once 'Zend/Http/Exception.php'; throw new Zend_Http_Exception("'{$value}' is not a valid HTTP header"); } - + $name = trim($header[0]); $value = trim($header[1]); } @@ -641,7 +641,7 @@ * @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);