1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #153 from andypiper/mime-fix

Fix for bad MIME Content-Type
This commit is contained in:
Nick O'Leary 2014-02-12 20:15:33 +00:00
commit 62389b487f

View File

@ -70,7 +70,8 @@ var RED = function() {
} }
var nns = RED.nodes.createCompleteNodeSet(); var nns = RED.nodes.createCompleteNodeSet();
d3.xhr("flows").post(JSON.stringify(nns),function(err,resp) { d3.xhr("flows").header("Content-type", "application/json")
.post(JSON.stringify(nns),function(err,resp) {
if (resp && resp.status == 204) { if (resp && resp.status == 204) {
RED.notify("Successfully deployed","success"); RED.notify("Successfully deployed","success");
RED.view.dirty(false); RED.view.dirty(false);