diff --git a/lib/phpSmug/Client.php b/lib/phpSmug/Client.php index dd3cdfd..979ff18 100644 --- a/lib/phpSmug/Client.php +++ b/lib/phpSmug/Client.php @@ -309,7 +309,7 @@ private function performRequest($method, $url) $oauth_middleware = new \GuzzleHttp\Subscriber\Oauth\Oauth1($oauth_middleware_config); - $this->stack->unshift($oauth_middleware, 'oauth_middleware'); // Bump OAuth to the bottom of the stack + $this->stack->after('allow_redirects', $oauth_middleware, 'oauth_middleware'); // Bump OAuth to the bottom of the stack } // Merge the default and request options for all requests except upload requests.