The Content-Length story
TLDR; The fix is therefore to use Buffer.from(string).length to set Content-Length instead of string.length.
What’s Content-Length?
It’s an HTTP header both the client and the server use to denote the size of the request/response body.
Storytime
Was...
manohar.hashnode.dev2 min read