Skip to content

Commit

Permalink
Merge pull request #88 from tumblr/fix-redirects
Browse files Browse the repository at this point in the history
Redirects now return code 302
  • Loading branch information
jasonpenny committed Sep 29, 2017
2 parents dd6d177 + c214660 commit 308ad2a
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 308ad2a

Please sign in to comment.