From b689d730657821adb47a5909530e8c4e09f2783f Mon Sep 17 00:00:00 2001 From: troy Date: Sun, 23 Jan 2022 00:11:21 +0100 Subject: [PATCH] warning gefixt wegen content type --- troy-api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/troy-api.php b/troy-api.php index 032967a..3f9603c 100644 --- a/troy-api.php +++ b/troy-api.php @@ -5,6 +5,7 @@ function sendToTroy($data) { $options = array ( 'http' => array ( 'method' => 'POST', + 'Content-Type' => 'application/json', 'content' => json_encode ( $data ) ) );