Permalink
Browse files

Ensure that the HTTP Link header has the relation set

  • Loading branch information...
lanthaler committed Oct 22, 2014
1 parent 1b5a222 commit 5fba97b57285fb757b7d5872d94fa1d91f8c68a5
Showing with 1 addition and 1 deletion.
  1. +1 −1 proxy.php
@@ -62,7 +62,7 @@ function parseContextLinkHeaders(array $values, IRI $baseIri)
$part[$pieces[0]] = isset($pieces[1]) ? $pieces[1] : '';
}
if (in_array('http://www.w3.org/ns/json-ld#context', explode(' ', $part['rel']))) {
if (isset($part['rel']) && in_array('http://www.w3.org/ns/json-ld#context', explode(' ', $part['rel']))) {
$contexts[] = (string) $baseIri->resolve(trim(key($part), '<> '));
}
}

0 comments on commit 5fba97b

Please sign in to comment.