Skip to content

Commit

Permalink
v 1.3.1 - add verify false to Guzzle
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-moellering committed Jul 19, 2022
1 parent e462053 commit cfbc4a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Or add the package to your `composer.json`:
```json
{
"require": {
"infusionweb/laravel-remote-content-cache": "~1.3.0"
"infusionweb/laravel-remote-content-cache": "~1.3.1"
}
}
```
Expand Down
8 changes: 7 additions & 1 deletion src/ContentCache/ContentCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ protected function getContentChunk($name = '', $limit = 100, $offset = 0)
$query['limit'] = $limit;
$query['offset'] = $offset;

$response = Guzzle::get( $profile->getEndpoint(), ['query' => $query] );
$response = Guzzle::get(
$profile->getEndpoint(),
[
'query' => $query,
'verify' => false,
],
);

$result = json_decode($response->getBody());
if (is_object($result) && property_exists($result, 'results') && is_array($result->results)) {
Expand Down

0 comments on commit cfbc4a3

Please sign in to comment.