Files
dolibarr/htdocs/core/triggers
lelex86 671ae12bee Fix: content-type haeder missing for webhook (#29588)
Data sent by webhooks is encoded in JSON and sent using the CURLOPT_POSTFIELDS function in cURL. However, the Content-Type header is not explicitly specified. By default, cURL automatically sets the Content-Type header to application/x-www-form-urlencoded, which can cause issues with certain applications.
To avoid this, I explicitly set the Content-Type header to application/json. This ensures that the data is sent in the correct format and that applications receiving the data can process it correctly.
2024-05-02 19:40:30 +02:00
..

Directory content
--------------------------------------------------------
This directory contains all available Dolibarr triggers.

Trigger file name syntax is:
> interface_modModule_Mytrigger.php[-NORUN]

where:
> modModule is part of module descriptor file name found in core/modules
            directory or value 'all' if not enabled by a particular module.
> Mytrigger is name of the trigger. The PHP class inside the trigger file
            would be named InterfaceMytrigger.
> -NORUN is optional and disable completely a trigger file if set. To use 
            a trigger with such a name, rename file to remove the -NORUN part.