Skip to content

Commit 2aff195

Browse files
committed
Fix on payload length
1 parent a41b555 commit 2aff195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Movie extends Base {
100100

101101
if (body) {
102102
data = JSON.stringify(body);
103-
headers['Content-Length'] = data.length;
103+
headers['Content-Length'] = Buffer.byteLength(data);
104104
}
105105

106106
const options = {

0 commit comments

Comments
 (0)