Skip to content

Commit

Permalink
verify host fix
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/CreatesRequest.php
  • Loading branch information
Olav van Schie committed Dec 31, 2019
1 parent a82e24d commit e512260
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/opcache.php
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
return [
'url' => env('OPCACHE_URL', config('app.url')),
'verify_ssl' => true,
'verify_host' => true,
'verify_host' => 2, // 0 for disabled
'headers' => [],
'directories' => [
base_path('app'),
2 changes: 1 addition & 1 deletion src/CreatesRequest.php
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ trait CreatesRequest
*/
public function sendRequest($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,
return Lush::headers(config('opcache.headers'))->options(['verify_ssl' => config('opcache.verify_ssl'),'verify_host' => config('opcache.verify_host',2)])->get(config('opcache.url').'/opcache-api/'.$url,
['key' => Crypt::encrypt('opcache')]
);
}

0 comments on commit e512260

Please sign in to comment.