mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Content-type should be enough. So wa can accept error message in html
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user