Use Buffer.byteLength(data); to set request content length