mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
fixed bug with response when we have no rihgts read dir
if we have no rights to read directory, server sends 404 response, not 200 ok.
This commit is contained in:
parent
beaebbe949
commit
c052b1617a
1 changed files with 2 additions and 0 deletions
|
|
@ -440,6 +440,8 @@ CloudServer._readDir = function (pError, pFiles)
|
|||
{
|
||||
if(pError){
|
||||
console.log(pError);
|
||||
|
||||
CloudServer.Statuses[DirPath] = 404;
|
||||
CloudServer.sendResponse('OK',pError.toString(),
|
||||
DirPath);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue