Skip to content

On response header, Transfer-Encoding is always chunked #45

@djaoka

Description

@djaoka

It's seems that if i use this package, Content-Length is never set and Transfer-Encoding is equal to chunked.
Is it normal ?

My fix : setting the Content-Length juste before calling send

const data = JSON.parse(body);

data.moreInfo = 'tada!';

....

res.set('Content-Length', Buffer.byteLength(JSON.stringify(data), 'utf-8'));

send(JSON.stringify(data));

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