We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1efe3bf + afbc744 commit 2f4a9d4Copy full SHA for 2f4a9d4
stringstream.js
@@ -28,7 +28,7 @@ StringStream.prototype.write = function(data) {
28
return false
29
}
30
if (this.fromEncoding) {
31
- if (Buffer.isBuffer(data)) data = data.toString()
+ if (Buffer.isBuffer(data) || typeof data === 'number') data = data.toString()
32
data = new Buffer(data, this.fromEncoding)
33
34
var string = this.decoder.write(data)
0 commit comments