Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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