From 8d7a067c8d82a592bfb3dcacf05305c39550cbc6 Mon Sep 17 00:00:00 2001 From: astarring Date: Wed, 9 Sep 2026 02:35:42 +0800 Subject: feat: add per-tab request headers (#30) Expose explicit set and clear tools so environment-routed pages can be opened without leaking header values or carrying headers across unrelated browsing. Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com Co-authored-by: zouzhigang --- test/cdp/commands-test.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/cdp/commands-test.ts') diff --git a/test/cdp/commands-test.ts b/test/cdp/commands-test.ts index ad1b057..738189d 100644 --- a/test/cdp/commands-test.ts +++ b/test/cdp/commands-test.ts @@ -42,6 +42,11 @@ describe("cdp command table", () => { const r = decodeResult("Nope.method" as "Page.enable", {}); assert.equal(r.success, false); }); + + test("accepts an empty Network.setExtraHTTPHeaders response", () => { + const r = decodeResult("Network.setExtraHTTPHeaders", {}); + assert.equal(r.success, true); + }); }); describe("Accessibility.getFullAXTree schema", () => { -- cgit v1.2.3