Skip to content

Commit

Permalink
Minor fix for Guzzle 6+
Browse files Browse the repository at this point in the history
  • Loading branch information
jasny authored Aug 31, 2020
1 parent f03f8ae commit 1212c0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Authorizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ public static function sign($allowedResource, $authzgen, $handler = null)
if (!isset(self::$globalSecret)) trigger_error('$globalSecret is not set', E_USER_WARNING);

list($cerfiticateUrl, $timeStart, $timeEnd) = explode(';', $authzgen) + [null, null, null];
$opts = $handler !== null ? ['handler' => $handler] : [];

$publicKey = self::downloadSigningKey($cerfiticateUrl, ['handler' => $handler]);
$publicKey = self::downloadSigningKey($cerfiticateUrl, $opts);

$resourceSecret = join(';', [
$timeStart,
Expand Down

0 comments on commit 1212c0b

Please sign in to comment.