update files

This commit is contained in:
nuintun
2016-01-14 14:23:05 +08:00
parent f3866a820b
commit c1cb03390b
2 changed files with 1 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ function DecodeGenerator(){
var charset;
return function (data){
if (data) {
if (Buffer.isBuffer(data)) {
if (charset === undefined) {
charset = jschardet.detect(data).encoding;
}