From f08902750052e5e13d85f691a2c8e14d43deecaf Mon Sep 17 00:00:00 2001 From: Yvo Brevoort Date: Mon, 5 Oct 2026 15:46:01 +0200 Subject: [PATCH] grab pod count from the POST vars instead of headers --- lib/Routes/SolidStorageProvider.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/Routes/SolidStorageProvider.php b/lib/Routes/SolidStorageProvider.php index 7ae8026..1b3f359 100644 --- a/lib/Routes/SolidStorageProvider.php +++ b/lib/Routes/SolidStorageProvider.php @@ -40,15 +40,15 @@ public static function respondToPodCount() header("HTTP/1.1 404 Not found"); exit(); } - if (!isset($_SERVER['HTTP_POD_COUNT_KEY'])) { - header("HTTP/1.1 404 Not found"); - exit(); - } - if ($_SERVER['HTTP_POD_COUNT_KEY'] !== POD_COUNT_KEY) { - header("HTTP/1.1 400 Bad Request"); - exit(); - } - + $podCountKey = $_POST['POD_COUNT_KEY'] ?? null; + if (!isset($podCountKey)) { + header("HTTP/1.1 404 Not found"); + exit(); + } + if ($podCountKey !== POD_COUNT_KEY) { + header("HTTP/1.1 400 Bad Request"); + exit(); + } $podCount = StorageServer::getPodCount(); $responseData = array( "count" => $podCount