2
0
forked from Wavyzz/dolibarr

Content-type should be enough. So wa can accept error message in html

This commit is contained in:
Laurent Destailleur
2024-09-01 14:08:11 +02:00
parent 079f6487fd
commit 80411ff95c

View File

@@ -121,8 +121,8 @@ class InterfaceWebhookTriggers extends DolibarrTriggers
$jsonstr = json_encode($resobject);
$headers = array(
'Content-Type: application/json',
'Accept: application/json'
'Content-Type: application/json'
//'Accept: application/json'
);
$response = getURLContent($tmpobject->url, 'POST', $jsonstr, 1, $headers, array('http', 'https'), 2, -1);