Commit 8e14f761 authored by kimown's avatar kimown Committed by Evan Lucas
Browse files

doc: use `Buffer.byteLength` for Content-Length

As the description in http.md:

> If the body contains higher coded characters then
Buffer.byteLength() should be used to determine the number of
bytes in a given encoding.

PR-URL: https://github.com/nodejs/node/pull/7274


Reviewed-By: default avatarBrian White <mscdex@mscdex.net>
Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarJackson Tian <shyvo1987@gmail.com>
parent 5d03bdd9
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment