Skip to content

Commit

Permalink
Github raw payload support
Browse files Browse the repository at this point in the history
Github changed how they do their payloads so there is no variable, it is just in the raw
  • Loading branch information
johnsmclay committed Jul 2, 2015
1 parent ca8b980 commit 8e1eb0b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.php
Expand Up @@ -67,7 +67,11 @@ function log_message($message='')

log_message("Payload Type: $payload_type");
if ($payload_type == 'github') {
$json_payload = $_POST[$post_var_name];
if ($github_uses_post_var) {
$json_payload = $_POST[$post_var_name];
} else {
$json_payload = $HTTP_RAW_POST_DATA;
}
}
else if($payload_type == 'gitlab') {
$json_payload = $HTTP_RAW_POST_DATA;
Expand Down

0 comments on commit 8e1eb0b

Please sign in to comment.