Skip to content

Commit bc8c2e6

Browse files
author
Ian Barber
committed
Disable compress.zlib on GAE
Currently unsupported.
1 parent 6fd9456 commit bc8c2e6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Google/Client.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,11 @@ function_exists('date_default_timezone_set')) {
9090
} else if ( !($config instanceof Google_Config)) {
9191
$config = new Google_Config();
9292

93-
// Automatically use Memcache if we're in AppEngine.
9493
if ($this->isAppEngine()) {
94+
// Automatically use Memcache if we're in AppEngine.
9595
$config->setCacheClass('Google_Cache_Memcache');
96+
// Automatically disable compress.zlib, as currently unsupported.
97+
$config->setClassConfig('Google_Http_Request', 'disable_gzip', true);
9698
}
9799
}
98100

0 commit comments

Comments
 (0)