diff --git a/packages/node_modules/@node-red/nodes/core/network/21-httpin.js b/packages/node_modules/@node-red/nodes/core/network/21-httpin.js index 94e5c8e1c..98bce6e26 100644 --- a/packages/node_modules/@node-red/nodes/core/network/21-httpin.js +++ b/packages/node_modules/@node-red/nodes/core/network/21-httpin.js @@ -212,6 +212,9 @@ module.exports = function(RED) { node.send({_msgid:msgid,req:req,res:createResponseWrapper(node,res),payload:req.body}); } else if (node.method == "get") { 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 { node.send({_msgid:msgid,req:req,res:createResponseWrapper(node,res)}); }