diff --git a/assets/bin/osx/iguana b/assets/bin/osx/iguana index 2c02b98..7bc30be 100755 Binary files a/assets/bin/osx/iguana and b/assets/bin/osx/iguana differ diff --git a/main.js b/main.js index 69c3607..a5dd313 100644 --- a/main.js +++ b/main.js @@ -59,8 +59,8 @@ process.once('loaded', () => { } }); -guiapp.use(bodyParser.json()); // support json encoded bodies -guiapp.use(bodyParser.urlencoded({ extended: true })); // support encoded bodies +guiapp.use(bodyParser.json({limit: '50mb'})); // support json encoded bodies +guiapp.use(bodyParser.urlencoded({limit: '50mb', extended: true})); // support encoded bodies guiapp.get('/', function (req, res) { res.send('Iguana app server'); diff --git a/routes/shepherd.js b/routes/shepherd.js index 3b3dd84..b2ea5a1 100644 --- a/routes/shepherd.js +++ b/routes/shepherd.js @@ -158,8 +158,8 @@ shepherd.get('/groom', function(req, res, next) { var _filename = req.query.filename; if (_filename) { - if (fs.existsSync(iguanaDir + '/shepherd/data-' + _filename + '.json')) { - fs.readFile(iguanaDir + '/shepherd/data-' + _filename + '.json', 'utf8', function (err, data) { + if (fs.existsSync(iguanaDir + '/shepherd/cache-' + _filename + '.json')) { + fs.readFile(iguanaDir + '/shepherd/cache-' + _filename + '.json', 'utf8', function (err, data) { if (err) { var errorObj = { 'msg': 'error', @@ -210,7 +210,7 @@ shepherd.post('/groom', function(req, res) { res.end(JSON.stringify(errorObj)); } else { - fs.writeFile(iguanaDir + '/shepherd/data-' + _filename + '.json', _payload, function (err) { + fs.writeFile(iguanaDir + '/shepherd/cache-' + _filename + '.json', _payload, function (err) { if (err) { var errorObj = { 'msg': 'error',