mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
minor changes
This commit is contained in:
parent
c159dc7f9d
commit
5ee28766a5
4 changed files with 5 additions and 5 deletions
|
|
@ -2,7 +2,7 @@
|
|||
"api_url" : "/api/v1",
|
||||
"appcache" : false,
|
||||
"minification" : {
|
||||
"js" : true,
|
||||
"js" : false,
|
||||
"css" : true,
|
||||
"html" : true,
|
||||
"img" : true
|
||||
|
|
|
|||
|
|
@ -10,6 +10,6 @@ var DOM, _gaq;
|
|||
navigator.userAgent + ' -> ' + url + " : " + line]);
|
||||
});
|
||||
|
||||
DOM.jsload('http://google-analytics.com/ga.js');
|
||||
DOM.jsload('//google-analytics.com/ga.js');
|
||||
|
||||
})(DOM, _gaq);
|
||||
|
|
@ -24,7 +24,6 @@ var CloudCommander, Util, DOM, $;
|
|||
function showEditor(pReadOnly){
|
||||
DOM.Images.showLoad();
|
||||
var lEditor = CloudCmd[pReadOnly ? 'Viewer' : 'Editor'],
|
||||
|
||||
lResult = Util.exec(lEditor, pReadOnly);
|
||||
|
||||
if(!lResult){
|
||||
|
|
|
|||
|
|
@ -193,12 +193,13 @@
|
|||
*/
|
||||
function sendFile(pParams){
|
||||
var lRet,
|
||||
lName, lReq, lRes, lQuery;
|
||||
lName, lReq, lRes, lQuery, lGziped;
|
||||
|
||||
if(pParams){
|
||||
lName = pParams.name,
|
||||
lReq = pParams.request,
|
||||
lRes = pParams.response;
|
||||
lGziped = pParams.gziped;
|
||||
lQuery = getQuery(lReq);
|
||||
}
|
||||
|
||||
|
|
@ -217,7 +218,7 @@
|
|||
|
||||
lRes.writeHead(OK, generateHeaders(lName, lGzip, lQuery ) );
|
||||
|
||||
if (lGzip)
|
||||
if (lGzip && !lGziped)
|
||||
lReadStream = lReadStream.pipe( zlib.createGzip() );
|
||||
|
||||
lReadStream.pipe(lRes);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue