Skip to content

Commit e3dd61f

Browse files
neunhoefpluma
authored andcommitted
added utf-8 fix
1 parent 1db98ea commit e3dd61f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/connection.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ extend(Connection.prototype, {
6767
} else {
6868
body = String(body);
6969
}
70+
if (typeof body === "string") {
71+
body = new Buffer(body, "utf-8");
72+
}
7073
headers['content-length'] = body.length;
7174
}
7275

0 commit comments

Comments
 (0)