Http request node - method PATCH

Hi,

I need to send an http request using the PATCH method. This isn't listed in the drop-down of methods, but it is listed in the docs if I use msg.method to pass the information to the node.

I tried sending this:

{
"_msgid":"242aa003.a449c",
"payload":"REDACTED",
"topic":"",
"method":"PATCH",
"headers":{"content-type":"application/json;charset=UTF-8"},
"url":"REDACTED",
"cookies":{"JSESSIONID":
{"Path":"/wsg","value":"WRMJK4Ha3AdCxnAQkzoKxKLQ31XbOzCs"}
}
}

but I get the message back.

{
"message":" ["encryption"] object has missing required properties (["method"]); ","errorCode":101,"errorType":"Bad HTTP request"
}

Am I doing something wrong ?

Thanks

Bruce

as long as the request node is set to use msg.method
image
then you should be ok - we just do method = msg.method.toUpperCase(); before using it.