Fix HTTP response; 204 should be code not body.

This commit is contained in:
Mark Hindess 2014-07-31 07:04:10 +01:00
parent 30a94bdaf5
commit e407fc857e
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ function createServer(_server,_settings) {
function(req,res) {
var flows = req.body;
redNodes.setFlows(flows).then(function() {
res.json(204);
res.send(204);
}).otherwise(function(err) {
util.log("[red] Error saving flows : "+err);
res.send(500,err.message);