Skip to content

Commit

Permalink
force no header on aux version call
Browse files Browse the repository at this point in the history
  • Loading branch information
ferishili committed Jun 12, 2024
1 parent 7725ab5 commit 2b75181
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/OpencastApi/Rest/OcRestClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public function hasVersion($version)
try {
// We have to use an aux object, in order to prevent overwriting arguments of current object.
$aux = clone $this;
$aux->enableNoHeader();
$defaultVersion = $aux->performGet('/api/version/default');
if (!empty($defaultVersion['body']) && isset($defaultVersion['body']->default)) {
$this->setVersion(str_replace(['application/', 'v', '+json'], ['', '', ''], $defaultVersion['body']->default));
Expand Down

0 comments on commit 2b75181

Please sign in to comment.