Merge pull request #23660 from owncloud/master-make-google-drive-drumpf-again
Use the shipped cacerts.pem instead of the global one
This commit is contained in:
commit
510e8db1ba
|
@ -445,6 +445,7 @@ class Google extends \OC\Files\Storage\Common {
|
||||||
$client->get($downloadUrl, [
|
$client->get($downloadUrl, [
|
||||||
'headers' => $httpRequest->getRequestHeaders(),
|
'headers' => $httpRequest->getRequestHeaders(),
|
||||||
'save_to' => $tmpFile,
|
'save_to' => $tmpFile,
|
||||||
|
'verify' => __DIR__ . '/../3rdparty/google-api-php-client/src/Google/IO/cacerts.pem',
|
||||||
]);
|
]);
|
||||||
} catch (RequestException $e) {
|
} catch (RequestException $e) {
|
||||||
if(!is_null($e->getResponse())) {
|
if(!is_null($e->getResponse())) {
|
||||||
|
|
Loading…
Reference in New Issue