fixed bug with sending response on query other then json on /fs url

This commit is contained in:
coderaiser 2013-04-21 07:23:27 -04:00
parent 19c4d93786
commit dd55d922b0
3 changed files with 4 additions and 1 deletions

View file

@ -87,6 +87,8 @@ is pressed and current file is directory.
* Fixed header of api fs GET.
* Fixed bug with setting query other then json on /fs url.
2012.03.01, v0.1.9

View file

@ -34,6 +34,7 @@
- Создание нового файла.
- Стиль выделения в Опере.
- Заголовок выдачи REST-фукнции fs метода GET.
- Отправка данных в ответ на запрос отличный от ?json в пути /url.
**Обновлены:**
- jquery до версии v2.0.0

View file

@ -311,7 +311,7 @@
p.name +='.json';
main.sendResponse(p);
}
else if(!lQuery){ /* get back html*/
else{ /* get back html*/
p.name = Minify.allowed.html ? Minify.getName(INDEX) : INDEX;
fs.readFile(p.name, function(pError, pData){
if(!pError){