fix: test ntfy without custom headers (#456)

This commit is contained in:
Miguel Ribeiro
2024-07-15 21:39:31 +02:00
committed by GitHub
parent f8ebbcf05b
commit 8fcfc92647
2 changed files with 4 additions and 1 deletions

View File

@@ -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);

View File

@@ -1,3 +1,3 @@
<?php
$version = "v2.19.1";
$version = "v2.19.2";
?>