mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(cloudcmd) when send file from fs: gzip false
This commit is contained in:
parent
ff198223eb
commit
91e1a388c3
2 changed files with 3 additions and 0 deletions
|
|
@ -203,7 +203,9 @@
|
|||
if (error)
|
||||
if (error.code === 'ENOTDIR') {
|
||||
p.name = path;
|
||||
p.gzip = false;
|
||||
ponse.sendFile(p);
|
||||
console.log('>>>', path)
|
||||
} else {
|
||||
ponse.sendError(error, p);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -152,6 +152,7 @@
|
|||
};
|
||||
|
||||
if (isFile) {
|
||||
params.gzip = false;
|
||||
ponse.sendFile(params);
|
||||
} else {
|
||||
if (!error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue