minor changes

This commit is contained in:
coderaiser 2013-02-09 15:40:51 -05:00
parent c159dc7f9d
commit 5ee28766a5
4 changed files with 5 additions and 5 deletions

View file

@ -2,7 +2,7 @@
"api_url" : "/api/v1",
"appcache" : false,
"minification" : {
"js" : true,
"js" : false,
"css" : true,
"html" : true,
"img" : true

View file

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

View file

@ -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){

View file

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