Skip to content

Commit

Permalink
Merge pull request #97 from Cyrille37/Cyrille37-verify_host
Browse files Browse the repository at this point in the history
Cyrille37 verify host
  • Loading branch information
ovanschie authored Dec 29, 2019
2 parents 0691f02 + 5bfa1d6 commit b78fc66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/opcache.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
'url' => env('OPCACHE_URL', config('app.url')),
'prefix' => 'opcache-api',
'verify_ssl' => true,
'verify_host' => true,
'headers' => [],
'directories' => [
base_path('app'),
Expand Down
2 changes: 1 addition & 1 deletion src/CreatesRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ trait CreatesRequest
public function sendRequest($url, $parameters = [])
{
return Lush::headers(config('opcache.headers'))
->options(['verify_ssl' => config('opcache.verify_ssl')])
->options(['verify_ssl' => config('opcache.verify_ssl'),'verify_host' => config('opcache.verify_host',true)])
->get(config('opcache.url').'/'. config('opcache.prefix') . '/'.$url,
array_merge(['key' => Crypt::encrypt('opcache')], $parameters)
);
Expand Down

0 comments on commit b78fc66

Please sign in to comment.