Skip to content

Commit 34d2627

Browse files
committed
methodname here is the function name, not the HTTP method
1 parent 6311a45 commit 34d2627

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

solid/lib/Middleware/SolidCorsMiddleware.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ public function afterController($controller, $methodName, Response $response) {
3434
$response->addHeader('Access-Control-Expose-Headers', $corsExposeHeaders);
3535
$response->addHeader('Accept-Patch', 'text/n3');
3636

37-
if (strtolower($methodName) == "head") {
38-
$pubsub = getenv("PUBSUB_URL") ?: "http://pubsub:8080";
39-
$response->addHeader('updates-via', $pubsub);
40-
}
37+
$pubsub = getenv("PUBSUB_URL") ?: "http://pubsub:8080";
38+
$response->addHeader('updates-via', $pubsub);
4139

4240
return $response;
4341
}

0 commit comments

Comments
 (0)