aboutsummaryrefslogtreecommitdiff
path: root/classes/task/notify.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/task/notify.php')
-rw-r--r--classes/task/notify.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/task/notify.php b/classes/task/notify.php
index faa68a9..bd11f24 100644
--- a/classes/task/notify.php
+++ b/classes/task/notify.php
@@ -79,7 +79,7 @@ final class notify extends adhoc_task {
public function post(record $service, array $data) {
$curl = new curl();
$curl->setHeader(['Content-Type: ' . $service->header]);
- $curl->post($service->point, $data);
+ $curl->post($service->point, json_encode($data));
if (defined('PHPUNIT_TEST') && PHPUNIT_TEST) {
$this->debug = array_merge($this->debug ?? [], [