mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Use HTTP body instead of header for setting flows run state
This commit is contained in:
@@ -254,7 +254,7 @@ describe("api/admin/flows", function() {
|
||||
request(app)
|
||||
.post('/flows/state')
|
||||
.set('Accept', 'application/json')
|
||||
.set('Node-RED-Flow-Run-State-Change', 'stop')
|
||||
.send({state:'stop'})
|
||||
.expect(200)
|
||||
.end(function (err, res) {
|
||||
if (err) {
|
||||
@@ -295,7 +295,7 @@ describe("api/admin/flows", function() {
|
||||
request(app)
|
||||
.post('/flows/state')
|
||||
.set('Accept', 'application/json')
|
||||
.set('Node-RED-Flow-Run-State-Change', 'bad-state')
|
||||
.send({state:'bad-state'})
|
||||
.expect(400)
|
||||
.end(function(err,res) {
|
||||
if (err) {
|
||||
|
Reference in New Issue
Block a user