summaryrefslogtreecommitdiff
path: root/tests/units/Core/Http
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/Core/Http')
-rw-r--r--tests/units/Core/Http/RequestTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/units/Core/Http/RequestTest.php b/tests/units/Core/Http/RequestTest.php
index 217698f9..6fa796f7 100644
--- a/tests/units/Core/Http/RequestTest.php
+++ b/tests/units/Core/Http/RequestTest.php
@@ -102,6 +102,12 @@ class RequestTest extends Base
$request = new Request($this->container, array('HTTPS' => '1'), array(), array(), array(), array());
$this->assertTrue($request->isHTTPS());
+
+ $request = new Request($this->container, array('HTTP_X_FORWARDED_PROTO' => 'https'), array(), array(), array(), array());
+ $this->assertTrue($request->isHTTPS());
+
+ $request = new Request($this->container, array('HTTP_X_FORWARDED_PROTO' => 'http'), array(), array(), array(), array());
+ $this->assertFalse($request->isHTTPS());
}
public function testGetCookie()