Skip to content

"Content-Length" override not work #18238

@MrCarbone

Description

@MrCarbone
Bun.serve({
    port: 80,
    fetch(req) {
        return new Response("Hello World", {
            headers: { "Content-Length": "5" },
        });
    }
})

i expect it to show "Hello".

This was one of the issues fixed in Bun 1.1.43 , but it does not work in Bun 1.2.5

bun version 1.2.5 win64
windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions