diff --git a/src/post-receive.php b/src/post-receive.php index 2351d6e..d8823ce 100644 --- a/src/post-receive.php +++ b/src/post-receive.php @@ -3,7 +3,7 @@ $command = "cd /var/www/status-site && git reset --hard HEAD && git pull origin // TODO check against ip or secret hash -if ( $_SERVER['HTTP_X_GITHUB_EVENT'] == 'push' ) { +if ( $_SERVER['X-GitHub-Event'] == 'push' ) { if( ($fp = popen($command, "r")) ) { while( !feof($fp) ){