Skip to content

Commit

Permalink
Add test for isRequestToItself
Browse files Browse the repository at this point in the history
  • Loading branch information
timokoessler committed Dec 9, 2024
1 parent 25efd71 commit fca5134
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions library/vulnerabilities/ssrf/isRequestToItself.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,13 @@ t.test("it returns false", async (t) => {
}),
false
);
t.same(
isRequestToItself({
source: "headers",
paths: [],
port: 1234,
str: "localhost:1234",
}),
false
);
});

0 comments on commit fca5134

Please sign in to comment.