From d82f882ba8be6a148d40be7b68b557d1264aa1af Mon Sep 17 00:00:00 2001 From: tdurieux Date: Wed, 8 Sep 2021 14:05:52 +0200 Subject: [PATCH] fix: return the binary of the streamed content instead of a string --- src/source/GitHubStream.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source/GitHubStream.ts b/src/source/GitHubStream.ts index a5b84ca..973bb53 100644 --- a/src/source/GitHubStream.ts +++ b/src/source/GitHubStream.ts @@ -52,7 +52,7 @@ export default class GitHubStream extends GitHubBase implements SourceBase { if (this.repository.status != "ready") await this.repository.updateStatus("ready"); await storage.write(file.originalCachePath, content); - return stream.Readable.from(content.toString()); + return stream.Readable.from(content); } catch (error) { if (error.status == 403) { throw new AnonymousError("file_too_big", file);