From c214660f7dbe1bb114f601945aa30126d46fddc7 Mon Sep 17 00:00:00 2001 From: Jason Penny Date: Thu, 28 Sep 2017 22:44:32 -0400 Subject: [PATCH] Redirects now return code 302 --- lib/Tumblr/API/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Tumblr/API/Client.php b/lib/Tumblr/API/Client.php index 8398406..7d51138 100644 --- a/lib/Tumblr/API/Client.php +++ b/lib/Tumblr/API/Client.php @@ -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]; }