Skip to content

Commit 8840c3d

Browse files
committed
Fix for issue #47
1 parent d05445c commit 8840c3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/apicontrollersbase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class APIOperationBase {
8585
method: 'POST',
8686
headers: {
8787
'Content-Type': 'application/json',
88-
'Content-Length': this._request.length
88+
'Content-Length': Buffer.byteLength(JSON.stringify(this._request))
8989
},
9090
json: true,
9191
timeout: config.timeout,

0 commit comments

Comments
 (0)