Skip to content

Commit 336c034

Browse files
committed
Update Client.php
Never use cURL on App Engine, even if it is available.
1 parent de78028 commit 336c034

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Google/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function __construct($config = null)
8787
}
8888

8989
if ($config->getIoClass() == Google_Config::USE_AUTO_IO_SELECTION) {
90-
if (function_exists('curl_version') && function_exists('curl_exec')) {
90+
if (function_exists('curl_version') && function_exists('curl_exec') && !$this->isAppEngine()) {
9191
$config->setIoClass("Google_IO_Curl");
9292
} else {
9393
$config->setIoClass("Google_IO_Stream");

0 commit comments

Comments
 (0)