Fix test for ip middleware

This commit is contained in:
Alejandro Celaya
2024-12-20 09:52:30 +01:00
parent c34bfac6b1
commit d228c16f82
2 changed files with 2 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ class RedirectTest extends ApiTestCase
foreach ($ipAddressConfig['rka']['ip_address']['headers_to_inspect'] as $header) {
yield sprintf('rule: IP address in "%s" header', $header) => [
[
RequestOptions::HEADERS => [$header => '1.2.3.4'],
RequestOptions::HEADERS => [$header => $header !== 'Forwarded' ? '1.2.3.4' : 'for=1.2.3.4'],
],
'https://example.com/static-ip-address',
];