Fixed tests.

This commit is contained in:
Mike Cao 2025-02-01 20:04:43 -08:00
parent 6ab7746b7d
commit 7e2d257293
2 changed files with 5 additions and 5 deletions

View file

@ -28,7 +28,7 @@ export function getIpAddress(headers: Headers) {
const ip = headers.get(header);
if (header === 'x-forwarded-for') {
return ip?.split[',']?.[0]?.trim();
return ip?.split(',')?.[0]?.trim();
}
if (header === 'forwarded') {