mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 10:52:53 +00:00
fix: return the binary of the streamed content instead of a string
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user