Fixed tests.
This commit is contained in:
1 parent
6ab7746b7d
commit
7e2d257293
2 files changed
+5
-5
No files matched your search
+1
-1
@@ -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') {
|
||||
|
||||
Reference in new issue
Block a user