[#109] Problems in API (web-hooks)

Migrated from Redmine #109 | Author: Дмитрий Гомельский
Status: Closed | Priority: High, I’m very impatient | Created: 2018-02-15


Hello!
There was a problem - since 01/28/2018 your service has become inadequate to send web hooks. In the body of the web hook there are empty arrays Screenshot by Lightshot.
Please check it

Redmine Admin wrote:

It was multipart/form-data header before. This bug was fixed and it is application/json now.
Please check your code and RAW data you are getting

Дмитрий Гомельский wrote:

Redmine Admin wrote:

It was multipart/form-data header before. This bug was fixed and it is application/json now.
Please check your code and RAW data you are getting

Without changes - Screenshot by Lightshot.
This bug is still up-to-date.
Please check your code.

Redmine Admin wrote:

http://php.net/manual/en/reserved.variables.httprawpostdata.php
In general, php://input should be used instead of $HTTP_RAW_POST_DATA.

$data = json_decode(file_get_contents(‘php://input’));