sendFile with non-image files (fix #172)

This commit is contained in:
abalabahaha
2016-01-30 12:48:53 -08:00
parent c1171e6973
commit 89e3396af6
3 changed files with 7 additions and 3 deletions

View File

@@ -139,8 +139,10 @@ var Resolver = (function () {
_superagent2["default"].get(resource).end(function (err, res) {
if (err) {
reject(err);
} else {
} else if (res.text === undefined) {
resolve(res.body);
} else {
resolve(new Buffer(res.text));
}
});
});