public function HttpCacheTest::testXForwarderForHeaderForPassRequests in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\HttpCacheTest::testXForwarderForHeaderForPassRequests()
File
- vendor/
symfony/ http-kernel/ Tests/ HttpCache/ HttpCacheTest.php, line 1189
Class
Namespace
Symfony\Component\HttpKernel\Tests\HttpCacheCode
public function testXForwarderForHeaderForPassRequests() {
$this
->setNextResponse();
$server = array(
'REMOTE_ADDR' => '10.0.0.1',
);
$this
->request('POST', '/', $server);
$this
->assertEquals('10.0.0.1', $this->kernel
->getBackendRequest()->headers
->get('X-Forwarded-For'));
}