mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fixed bugs with generateHeaders
This commit is contained in:
parent
9880d1914b
commit
ce35937ca3
3 changed files with 9 additions and 3 deletions
|
|
@ -46,6 +46,12 @@ directories would be cached).
|
|||
|
||||
* fixed bug with keyboard not responding when click on file.
|
||||
|
||||
* Server.js separated to two files: cloudcmd.js and server.js.
|
||||
Start file is - cloudcmd.js
|
||||
|
||||
* Refactored and fixed old bugs in function generateHeaders (server.js).
|
||||
|
||||
|
||||
2012.08.24, Version 0.1.6
|
||||
|
||||
* From now jsload, cssload and anyload suport arrays.
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ Starting
|
|||
---------------
|
||||
To start **Cloud Commander** only one command neaded:
|
||||
|
||||
node server.js
|
||||
node cloudcmd.js
|
||||
After thet Cloud Commander reads config file **config.json** and start server
|
||||
on 31337 port, if none of port varibles(*cloud9*, *cloudfoundry* and *nodester*)
|
||||
isn't exist.
|
||||
|
|
|
|||
|
|
@ -627,7 +627,7 @@ CloudServer._fillJSON = function(pStats, pFiles){
|
|||
* с соответствующими заголовками
|
||||
*/
|
||||
lList = JSON.stringify(lJSON);
|
||||
lHeader = CloudServer.generateHeaders('application/json', CloudServer.Gzip);
|
||||
lHeader = CloudServer.generateHeaders('fs.json', CloudServer.Gzip);
|
||||
|
||||
/* если браузер поддерживает gzip-сжатие - сжимаем данные*/
|
||||
if(CloudServer.Gzip){
|
||||
|
|
@ -667,7 +667,7 @@ CloudServer.indexReaded = function(pList){
|
|||
|
||||
var lHeader;
|
||||
/* если браузер поддерживает gzip-сжатие*/
|
||||
lHeader = CloudServer.generateHeaders('text/html', CloudServer.Gzip);
|
||||
lHeader = CloudServer.generateHeaders('index.html', CloudServer.Gzip);
|
||||
|
||||
/* если браузер поддерживает gzip-сжатие - сжимаем данные*/
|
||||
if(CloudServer.Gzip) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue