Skip to content

Commit 797e19f

Browse files
authored
Merge pull request #37 from pdsinterop/fix/add-link-headers
Change WAC::addWACHeaders() to add "Link" headers instead of replacing them.
2 parents c33509e + e4176ac commit 797e19f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WAC.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function addWACHeaders($request, $response, $webId) {
3636
$wacHeaders[] = "public=\"$publicGrants\"";
3737
}
3838

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

0 commit comments

Comments
 (0)