We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1efe3bf commit afbc744Copy full SHA for afbc744
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