The Content-Length story
Feb 28, 2023 · 2 min read · 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...
Join discussion
