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:
coderaiser 2012-08-03 14:24:31 +03:00
parent beaebbe949
commit c052b1617a

View file

@ -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;