Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

define addEncoding for Template

  • Loading branch information...
commit f3afe0f8c51f1926494f5919eb9078ccc7021f54 1 parent 7bc1964
Florent Jaby authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/template.js
4 lib/template.js
View
@@ -88,6 +88,7 @@ Template.prototype.addStream = function addStream(stream) {
buffer.on('error', function(err) {
self.emit('error', err);
});
+ stream.setEncoding('utf8');
stream.pipe(buffer);
stream.resume();
this._buffers.push(buffer);
@@ -163,5 +164,8 @@ Template.prototype._newData = function _newData(logme) {
Template.prototype._write = function _write(data) {
this.emit('data', data);
};
+Template.prototype.setEncoding = function setEncoding(encoding) {
+
+};
module.exports = Template;
Please sign in to comment.
Something went wrong with that request. Please try again.