mirror of
https://github.com/morluto/rea.git
synced 2026-11-02 21:06:04 +00:00
test(mcp): count both plain-route observations in the request-target regression
The previous commit added a second successful route call to the regression but left the single-observation assertion in place. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
d6b3b67458
commit
10daa522e0
1 file changed
+2
-1
@@ -668,7 +668,8 @@ it("keeps a network-path request target as a path and refuses absolute-form targ
|
||||
expect((await rawTargetRequest(url, "/card?x=1")).status).toBe(200);
|
||||
const plain = await rawTargetRequest(url, "/card");
|
||||
expect(plain.status).toBe(200);
|
||||
expect(seen).toEqual([`127.0.0.1:${url.port}`]);
|
||||
// Both successful route calls saw only the bound host, never the attacker-selected one.
|
||||
expect(seen).toEqual([`127.0.0.1:${url.port}`, `127.0.0.1:${url.port}`]);
|
||||
});
|
||||
|
||||
it("lets only a lone initialize replace a session, not a batch that carries one", async () => {
|
||||
|
||||
Reference in new issue
Block a user