Skip to content

Commit

Permalink
fix: resolve problem with content-hub-metadata-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisdugue authored May 27, 2024
1 parent c94fa10 commit e48dca9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/H5PSymfony.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ public function fetchExternalData(
$client = new Client();
$response = $client->request($method, $url, $options);
$response_data = (string)$response->getBody();
if (empty($response_data)) {
// Prevent any error about road of content-hub-metadata-cache
if (empty($response_data) && $response->getStatusCode() !== 304) {
return false;
}
} catch (\Exception $e) {
Expand Down

0 comments on commit e48dca9

Please sign in to comment.