Skip to content

content-length header #52

Description

@spideron

The content length header is not set to the correct data length when using non standard characters such as letters with accent. The calculation of the data length should be Buffer.byteLength(data || "", 'utf8') instead of (data || "").length

https://github.com/balanced/balanced-node/blob/v0.3.3/lib/nbalanced/utility.js#L92

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions