diff options
author | 2023-09-29 00:03:58 -0700 | |
---|---|---|
committer | 2023-09-29 00:03:58 -0700 | |
commit | 6514dcf4cbc63cff89f3cac59598872caf776f0b (patch) | |
tree | f0e2d20f076e7785d4009290dd38d47af790c9e4 /test/js/web/fetch/fetch.test.ts | |
parent | d3caf37b49c8158c50e3bed71b9f8b2838437a9e (diff) | |
download | bun-6514dcf4cbc63cff89f3cac59598872caf776f0b.tar.gz bun-6514dcf4cbc63cff89f3cac59598872caf776f0b.tar.zst bun-6514dcf4cbc63cff89f3cac59598872caf776f0b.zip |
Fixes #6053 (#6162)
Fixes #6053
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'test/js/web/fetch/fetch.test.ts')
-rw-r--r-- | test/js/web/fetch/fetch.test.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/js/web/fetch/fetch.test.ts b/test/js/web/fetch/fetch.test.ts index 100f6e79e..85e2296cd 100644 --- a/test/js/web/fetch/fetch.test.ts +++ b/test/js/web/fetch/fetch.test.ts @@ -1501,10 +1501,12 @@ describe("should strip headers", () => { method: "POST", headers: { "I-Am-Here": "yes", + "Content-Language": "This should be stripped", }, }); - expect(headers.get("I-Am-Here")).toBeNull(); + expect(headers.get("I-Am-Here")).toBe("yes"); + expect(headers.get("Content-Language")).toBeNull(); expect(url).toEndWith("/redirected"); expect(redirected).toBe(true); server.stop(true); |