Skip to content

Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.

fix: test ntfy without custom headers (#456)

Miguel Ribeiro8fcfc9264726
diff --git a/endpoints/notifications/testntfynotifications.php b/endpoints/notifications/testntfynotifications.php
index 1f7efb0..26f0ba0 100644
--- a/endpoints/notifications/testntfynotifications.php
+++ b/endpoints/notifications/testntfynotifications.php
@@ -26,6 +26,9 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
$host = rtrim($data["host"], '/');
$topic = $data["topic"];
$headers = json_decode($data["headers"], true);
+ if ($headers === null) {
+ $headers = [];
+ }
$customheaders = array_map(function ($key, $value) {
return "$key: $value";
}, array_keys($headers), $headers);
diff --git a/includes/version.php b/includes/version.php
index 70d9561..41e33ad 100644
--- a/includes/version.php
+++ b/includes/version.php
@@ -1,3 +1,3 @@
<?php
-$version = "v2.19.1";
+$version = "v2.19.2";
?>
\ No newline at end of file