Skip to content

Commit

Permalink
Fixed header link of the profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-KM committed Jun 29, 2020
1 parent 2fb5035 commit 7beff1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mvc/Controller/Plugin/IiifJsonLd.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __invoke($data, $version = null)

$headers = $response->getHeaders();

if ($version === '3') {
if (version_compare($version, '3', '>=')) {
$headers
->addHeaderLine('Content-Type', 'application/ld+json;profile="http://iiif.io/api/presentation/3/context.json"', true);
} else {
Expand Down

0 comments on commit 7beff1a

Please sign in to comment.