diff --git a/ChangeLog b/ChangeLog index 354add70..af93e45e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -67,6 +67,9 @@ and linux. * Removed unneeded windows check. +* Fixed bug with downloading directory +listing in json from menu. + 2012.10.01, Version 0.1.7 diff --git a/server.js b/server.js index f8524e8f..8fec6a0c 100644 --- a/server.js +++ b/server.js @@ -248,9 +248,7 @@ CloudServer.generateHeaders = function(pName, pGzip){ if(pGzip) lRet['content-encoding'] = 'gzip'; - - console.log(lRet); - + return lRet; }; @@ -635,9 +633,9 @@ CloudServer._fillJSON = function(pStats, pFiles){ var lReaded_f = CloudServer.indexReaded(lList); lReaded_f(false, lFileData); } - }else{ + }else{ + DirPath = DirPath.substr(DirPath, DirPath.lastIndexOf('/') ); var lQuyery = CloudServer.Queries[DirPath]; - DirPath = DirPath.substr( DirPath.lastIndexOf('/') ); DirPath += '.json'; CloudServer.Queries[DirPath] = lQuyery; /* в обычном режиме(когда js включен