From db84fb547ec4543f7a7b97ad7338e3cee6edf3e2 Mon Sep 17 00:00:00 2001 From: Yvo Brevoort Date: Fri, 3 Feb 2023 20:15:13 +0100 Subject: [PATCH] add type to the storage --- src/Server.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Server.php b/src/Server.php index 6d97ea2..9dcd811 100644 --- a/src/Server.php +++ b/src/Server.php @@ -680,6 +680,7 @@ private function handleReadRequest(Response $response, string $path, $contents, '; rel="type"', '; rel="type"', '; rel="type"', + '; rel="type"', ]); $response = $response->withStatus(200); } elseif(($filesystem->has($path) === false) && (($path == ".meta") || ($path == "/.meta"))) { @@ -771,6 +772,9 @@ private function listDirectoryAsTurtle($path) "ldp:contains" => array() ) ); + if ($path === "/") { + $turtle["<>"]["a"][] = ""; + } foreach ($listContents as $item) { switch($item['type']) {