Commit 4a7e3332 authored by kimown's avatar kimown Committed by Myles Borins
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 85f70b36
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