Skip to content

Commit 8024f5a

Browse files
Return the plain-text response in getFile
1 parent 01cbbd3 commit 8024f5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ function get(config, uri, done) {
4141
if (res.error) {
4242
return done(res.error, null);
4343
}
44-
if (!res.body) {
44+
if (!res.text) {
4545
return done();
4646
}
47-
done(null, res.body);
47+
done(null, res.text);
4848
});
4949
}
5050

0 commit comments

Comments
 (0)