diff --git a/cloudcmd.js b/cloudcmd.js index e45d8f1e..f5b4bcbc 100644 --- a/cloudcmd.js +++ b/cloudcmd.js @@ -282,7 +282,7 @@ p.data = indexProcessing({ additional : lList, - data : pData, + data : pData.toString(), }); main.sendResponse(p); diff --git a/lib/server/main.js b/lib/server/main.js index 9ed9c925..06e7a379 100644 --- a/lib/server/main.js +++ b/lib/server/main.js @@ -57,11 +57,10 @@ exports.getQuery = getQuery, exports.isGZIP = isGZIP, exports.sendFile = sendFile, + exports.sendResponse = sendResponse, /* compitability with old versions of node */ - exports.fs.exists = exports.fs.exists || exports.path.exists; - //exports.fs.watch = isWin32 ? fs.watch : linuxWatch; - + exports.fs.exists = exports.fs.exists || exports.path.exists, /* Needed Modules */ exports.util = Util = require(LIBDIR + 'util'),