diff --git a/src/listener.ts b/src/listener.ts index 6a00a33..e123602 100644 --- a/src/listener.ts +++ b/src/listener.ts @@ -35,7 +35,7 @@ const responseViaCache = ( ): undefined | Promise => { const [status, body, header] = (res as any)[cacheKey] if (typeof body === 'string') { - header['content-length'] ||= '' + Buffer.byteLength(body) + header['Content-Length'] = Buffer.byteLength(body) outgoing.writeHead(status, header) outgoing.end(body) } else {