Fix for bad MIME Content-Type (per #152)

This commit is contained in:
Andy Piper 2014-02-11 13:21:30 +00:00
parent 75fc46c05d
commit c9374532a9
1 changed files with 7 additions and 6 deletions

View File

@ -70,7 +70,8 @@ var RED = function() {
}
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) {
RED.notify("Successfully deployed","success");
RED.view.dirty(false);