Skip to content

Commit

Permalink
Merge pull request #37 from pdsinterop/fix/add-link-headers
Browse files Browse the repository at this point in the history
Change WAC::addWACHeaders() to add "Link" headers instead of replacing them.
  • Loading branch information
ylebre authored Jan 27, 2023
2 parents c33509e + e4176ac commit 797e19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WAC.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function addWACHeaders($request, $response, $webId) {
$wacHeaders[] = "public=\"$publicGrants\"";
}

$response = $response->withHeader("Link", '<.acl>; rel="acl"');
$response = $response->withAddedHeader("Link", '<.acl>; rel="acl"');
$response = $response->withHeader("WAC-Allow", implode(",", $wacHeaders));
$this->filesystem->getAdapter()->setFormat($currentFormat);
return $response;
Expand Down

0 comments on commit 797e19f

Please sign in to comment.