Skip to content

Commit

Permalink
fix ApiTemporaryUnavailableException for guzzle 6
Browse files Browse the repository at this point in the history
  • Loading branch information
josiasmontag committed Mar 9, 2016
1 parent 0b71149 commit bba1505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api.php
Expand Up @@ -142,7 +142,7 @@ private function rawCall($method, $path, $content = null, $is_authenticated = tr
throw new Exceptions\ApiTemporaryUnavailableException(
$msg,
$code,
$e->getResponse()->getHeader('Retry-After')
$e->getResponse()->getHeader('Retry-After')[0]
);
} else {
throw new Exceptions\ApiException($msg, $code);
Expand Down

0 comments on commit bba1505

Please sign in to comment.