mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix HTTP response; 204 should be code not body.
This commit is contained in:
		| @@ -49,7 +49,7 @@ function createServer(_server,_settings) { | |||||||
|         function(req,res) { |         function(req,res) { | ||||||
|             var flows = req.body; |             var flows = req.body; | ||||||
|             redNodes.setFlows(flows).then(function() { |             redNodes.setFlows(flows).then(function() { | ||||||
|                 res.json(204); |                 res.send(204); | ||||||
|             }).otherwise(function(err) { |             }).otherwise(function(err) { | ||||||
|                 util.log("[red] Error saving flows : "+err); |                 util.log("[red] Error saving flows : "+err); | ||||||
|                 res.send(500,err.message); |                 res.send(500,err.message); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user