diff --git a/bin/callback.cjs b/bin/callback.cjs index 418f7c3..b41c9a5 100644 --- a/bin/callback.cjs +++ b/bin/callback.cjs @@ -44,7 +44,7 @@ const callbackRequest = (url, timeout, data) => { method: 'POST', headers: { 'Content-Type': 'application/json', - 'Content-Length': data.length + 'Content-Length': Buffer.byteLength(data) } } const req = http.request(options)