mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
trace must set header Content-Type 'message/http'
This commit is contained in:
parent
8366908939
commit
0870c2ce80
@ -212,6 +212,9 @@ module.exports = function(RED) {
|
|||||||
node.send({_msgid:msgid,req:req,res:createResponseWrapper(node,res),payload:req.body});
|
node.send({_msgid:msgid,req:req,res:createResponseWrapper(node,res),payload:req.body});
|
||||||
} else if (node.method == "get") {
|
} else if (node.method == "get") {
|
||||||
node.send({_msgid:msgid,req:req,res:createResponseWrapper(node,res),payload:req.query});
|
node.send({_msgid:msgid,req:req,res:createResponseWrapper(node,res),payload:req.query});
|
||||||
|
} else if (node.method == "trace") {
|
||||||
|
res.set('Content-Type', 'message/http')
|
||||||
|
node.send({_msgid:msgid,req:req,res:createResponseWrapper(node,res)});
|
||||||
} else {
|
} else {
|
||||||
node.send({_msgid:msgid,req:req,res:createResponseWrapper(node,res)});
|
node.send({_msgid:msgid,req:req,res:createResponseWrapper(node,res)});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user