diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/bun.js/node-http.test.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/bun.js/node-http.test.ts b/test/bun.js/node-http.test.ts index 7818fba62..c6d44f47d 100644 --- a/test/bun.js/node-http.test.ts +++ b/test/bun.js/node-http.test.ts @@ -411,6 +411,15 @@ describe("node:http", () => { req.end(); } }); + + it("should allow us to access headers on response object in lower-case", done => { + const req = request(`http://localhost:${serverPort}`, { method: "POST" }, res => { + expect(res.rawHeaders.indexOf("Content-Type")).toBeTruthy(); + expect(res.headers["content-type"]).toBe("text/plain"); + done(); + }); + req.end(); + }); }); describe("signal", () => { |