Use HTTP body instead of header for setting flows run state

This commit is contained in:
Steve-Mcl
2022-06-27 18:03:14 +01:00
parent 6b6004ee70
commit 2f1f587c50
3 changed files with 4 additions and 7 deletions

View File

@@ -306,10 +306,7 @@ RED.deploy = (function() {
$.ajax({
url:"flows/state",
type: "POST",
data: {state: state},
headers: {
"Node-RED-Flow-Run-State-Change": state
}
data: {state: state}
}).done(function(data,textStatus,xhr) {
if (deployWasEnabled) {
$("#red-ui-header-button-deploy").removeClass("disabled");