We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f878f5 commit b857296Copy full SHA for b857296
lib/Gitlab/Client.php
@@ -11,6 +11,7 @@
11
use Http\Client\Common\Plugin\AddHostPlugin;
12
use Http\Client\Common\Plugin\HeaderDefaultsPlugin;
13
use Http\Client\Common\Plugin\HistoryPlugin;
14
+use Http\Client\Common\Plugin\RedirectPlugin;
15
use Http\Client\HttpClient;
16
use Http\Discovery\UriFactoryDiscovery;
17
@@ -85,6 +86,7 @@ public function __construct(Builder $httpClientBuilder = null)
85
86
$this->httpClientBuilder->addPlugin(new HeaderDefaultsPlugin([
87
'User-Agent' => 'php-gitlab-api (http://github.com/m4tthumphrey/php-gitlab-api)',
88
]));
89
+ $this->httpClientBuilder->addPlugin(new RedirectPlugin());
90
91
$this->setUrl('https://gitlab.com');
92
}
0 commit comments