Details
-
Bug
-
Resolution: Invalid
-
Medium
Description
I am receiving http request, but no post data is present. Same thing when creating PR, approving or commenting.
When using same script with "POST" hook it works fine, all data is received, so i guess its not problem with php script.
I was testing those hooks in repo eyveer/testing.
Receiveing script:
#!php <?php file_put_contents('logpost', "\n\nRequest received\n" , FILE_APPEND); file_put_contents('logpost', "\n\n" . var_export($_POST, true) . "\n" , FILE_APPEND); $json = isset($_POST['payload']) ? str_replace('\\','',$_POST['payload']) : false; if (!$json) { return false; } $data = json_decode($json); file_put_contents('logpost', var_export($data, true) , FILE_APPEND);