Skip to content

Commit 515483a

Browse files
committed
Add support for TSL1.2
1 parent 80a454d commit 515483a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Cyberduck/LaravelWpApi/LaravelWpApiServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public function register()
3636
$auth = $this->app['config']->get('wp-api.auth');
3737
$client = $this->app->make('GuzzleHttp\Client');
3838

39+
if ($this->app['config']->get('wp-api.curl') && !empty($this->app['config']->get('wp-api.curl'))) {
40+
$client->setDefaultOption('config', ['curl' => $this->app['config']->get('wp-api.curl')]);
41+
}
42+
3943
return new WpApi($endpoint, $client, $auth);
4044

4145
});

0 commit comments

Comments
 (0)