Skip to content

Commit 36e458e

Browse files
committed
aspergers treatment
1 parent 5e876d7 commit 36e458e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

class.GitHubHook.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,15 @@ class GitHubHook
4747
* @since 1.0
4848
*/
4949
function __construct() {
50-
5150
/* support for ec2 load balancers */
5251
if (
5352
isset($_SERVER['HTTP_X_FORWARDED_FOR']) &&
5453
filter_var($_SERVER['HTTP_X_FORWARDED_FOR'], FILTER_VALIDATE_IP)
5554
) {
56-
5755
$this->_remoteIp = $_SERVER['HTTP_X_FORWARDED_FOR'];
58-
5956
} else {
60-
6157
$this->_remoteIp = $_SERVER['REMOTE_ADDR'];
62-
6358
}
64-
6559
if (isset($_POST['payload'])) {
6660
$this->_payload = json_decode($_POST['payload']);
6761
} else {
@@ -75,11 +69,9 @@ function __construct() {
7569
*/
7670

7771
private function _notFound($reason=false) {
78-
7972
if ($reason !== false) {
8073
$this->log($reason);
8174
}
82-
8375
header('HTTP/1.1 404 Not Found');
8476
echo '404 Not Found.';
8577
return false;

0 commit comments

Comments
 (0)