Skip to content

Commit

Permalink
Redirects now return code 302
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonpenny committed Sep 29, 2017
1 parent dd6d177 commit c214660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Tumblr/API/Client.php
Expand Up @@ -440,7 +440,7 @@ private function parseResponse($response)
private function getRedirect($path, $options, $addApiKey)
{
$response = $this->makeRequest('GET', $path, $options, $addApiKey);
if ($response->status === 301) {
if ($response->status === 301 || $response->status === 302) {
return $response->headers['Location'][0];
}

Expand Down

0 comments on commit c214660

Please sign in to comment.