Skip to content

Commit

Permalink
Merge pull request #98 from Cyrille37/Cyrille37-v2-verify_host
Browse files Browse the repository at this point in the history
Cyrille37 v2 verify host
  • Loading branch information
ovanschie authored Dec 29, 2019
2 parents 899ed38 + ab2ee72 commit a82e24d
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 @@ -3,6 +3,7 @@
return [
'url' => env('OPCACHE_URL', config('app.url')),
'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 @@ -14,7 +14,7 @@ trait CreatesRequest
*/
public function sendRequest($url)
{
return Lush::headers(config('opcache.headers'))->options(['verify_ssl' => config('opcache.verify_ssl')])->get(config('opcache.url').'/opcache-api/'.$url,
return Lush::headers(config('opcache.headers'))->options(['verify_ssl' => config('opcache.verify_ssl'),'verify_host' => config('opcache.verify_host')])->get(config('opcache.url').'/opcache-api/'.$url,
['key' => Crypt::encrypt('opcache')]
);
}
Expand Down

0 comments on commit a82e24d

Please sign in to comment.