From 652f8a6323e492c33fddedb57c5dc8f9c5d60901 Mon Sep 17 00:00:00 2001 From: imconfig Date: Fri, 26 Aug 2016 18:31:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a8aade8..35a7277 100644 --- a/index.js +++ b/index.js @@ -7,8 +7,8 @@ module.exports = function (content, file, conf) { - //log.debug("content"); - var result = content; + //log.debug("content");// 兼容content为buffer的情况 + var result = content.toString(); if (!file.isText()) return result;