change body.length to Buffer.byteLength(body)