Skip to content

Commit

Permalink
Update LaravelWpApiServiceProvider.php
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoTod committed Jun 1, 2016
1 parent 515483a commit 9497bf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cyberduck/LaravelWpApi/LaravelWpApiServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public function register()
$endpoint = $this->app['config']->get('wp-api.endpoint');
$auth = $this->app['config']->get('wp-api.auth');
$client = $this->app->make('GuzzleHttp\Client');

if ($this->app['config']->get('wp-api.curl') && !empty($this->app['config']->get('wp-api.curl'))) {
$curlOpt = $this->app['config']->get('wp-api.curl');
if ($curlOpt && !empty($curlOpt)) {
$client->setDefaultOption('config', ['curl' => $this->app['config']->get('wp-api.curl')]);
}

Expand Down

0 comments on commit 9497bf5

Please sign in to comment.