Skip to content

simpleResponse() doesn't work well with non-ASCII characters #3

@svick

Description

@svick

simpleResponse() sets the Content-Length header to body.length, which isn't correct when body contains non-ASCII characters, because those are sent as multiple bytes. This causes that the end of body isn't received by the recipient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions