fix: return the binary of the streamed content instead of a string

This commit is contained in:
tdurieux
2021-09-08 14:05:52 +02:00
parent 8b299222ea
commit d82f882ba8

View File

@@ -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);