From 6fc0241babb34385cfc6c502f629466664a8f964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sch=C3=B8bel?= Date: Thu, 18 Mar 2021 08:12:48 +0100 Subject: [PATCH] Fixed bug in getIp Fixed typo --- src/Pecee/Http/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pecee/Http/Request.php b/src/Pecee/Http/Request.php index 31dc0ae..e2bccae 100644 --- a/src/Pecee/Http/Request.php +++ b/src/Pecee/Http/Request.php @@ -167,7 +167,7 @@ class Request } if ($this->getHeader('http-x-forwarded-for') !== null) { - return $this->getHeader('http-x-forwarded_for'); + return $this->getHeader('http-x-forwarded-for'); } return $this->getHeader('remote-addr');