File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments