Skip to content

Commit 7c98626

Browse files
committed
Change comment in SolidCorsMiddleware regarding Link headers from downstream packages.
1 parent 06a9bb7 commit 7c98626

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

solid/lib/Middleware/SolidCorsMiddleware.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,14 @@ public function afterController($controller, $methodName, Response $response) {
4545
}
4646
$response->addHeader('Link', $linkHeaders);
4747

48-
// Note that apart from these, the Link header with rel="acl" and the WAC-Allow header
49-
// are already added by these lines in vendor/pdsinterop/solid-auth:
50-
// https://github.com/pdsinterop/php-solid-auth/blob/e07c22d/src/WAC.php#L39-L40
48+
/**
49+
* Please note that the Link header with rel='acl' and the WAC-Allow
50+
* header have already been added by pdsinterop/solid-auth, and Link
51+
* headers with rel='type' by pdsinterop/php-solid-crud.
52+
*
53+
* @see https://github.com/pdsinterop/php-solid-auth/blob/v0.10.1/src/WAC.php#L39-L40
54+
* @see https://github.com/pdsinterop/php-solid-crud/blob/v0.7.1/src/Server.php#L679-L683
55+
*/
5156
return $response;
5257
}
5358
}

0 commit comments

Comments
 (0)