mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(rest) onFSGet: sendFile
This commit is contained in:
parent
f44153577e
commit
ca4fae0cad
1 changed files with 6 additions and 1 deletions
|
|
@ -152,7 +152,12 @@
|
|||
|
||||
if (error) {
|
||||
if (error.code === 'ENOTDIR')
|
||||
main.sendFile(p);
|
||||
main.sendFile({
|
||||
gzip: true,
|
||||
name: path,
|
||||
request: p.request,
|
||||
response: p.response,
|
||||
});
|
||||
else
|
||||
sendError(params, error);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue