Issue Bug Closed

#88898Add test for set HTTP_HOST, HTTP_X_FORWARDED_HOST + reverseProxyIP

Jonas Eberle 08/02/19, 16:47 updated 12/23/19, 22:45

Description

IMHO 1 case is not covered.

It is very close to

            'first HTTP_X_FORWARDED_HOST from configured proxy' => [
                [
                    'HTTP_HOST' => '',
                    'REMOTE_ADDR' => '123.123.123.123',
                    'HTTP_X_FORWARDED_HOST' => 'www.domain1.com, www.domain2.com,'
                ],
                [
                    'reverseProxyIP' => '123.123.123.123',
                    'reverseProxyHeaderMultiValue' => 'first',
                ],
                'www.domain1.com',
            ],

, but with a set HTTP_HOST. The result shall be the same.

Reviews 1