Allow msg.PATCH method on http request node

Simple fix  to Close PR #524
(no CLA)
This commit is contained in:
dceejay
2015-01-30 09:59:36 +00:00
parent e9f0877da8
commit f451d0644a
2 changed files with 2 additions and 2 deletions

View File

@@ -203,7 +203,7 @@ module.exports = function(RED) {
}
var payload = null;
if (msg.payload && (method == "POST" || method == "PUT") ) {
if (msg.payload && (method == "POST" || method == "PUT" || method == "PATCH" ) ) {
if (typeof msg.payload === "string" || Buffer.isBuffer(msg.payload)) {
payload = msg.payload;
} else if (typeof msg.payload == "number") {