mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-14 19:32:45 +00:00
fix(#199): stop content download when request is canceled and always define contentLength
This commit is contained in:
@@ -52,6 +52,12 @@ export interface StorageBase {
|
||||
*/
|
||||
read(path: string): Readable;
|
||||
|
||||
fileInfo(path: string): Promise<{
|
||||
size: number | undefined;
|
||||
lastModified: Date | undefined;
|
||||
contentType: string;
|
||||
}>;
|
||||
|
||||
/**
|
||||
* Write data to a file
|
||||
* @param path the path to the file
|
||||
|
||||
Reference in New Issue
Block a user