1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

HTTP REQUEST: Adding PROPPATCH and PROPFIND http methods (#1531)

* HTTP REQUEST: Adding PROPPATCH and PROPFIND http methods

* Removed method check
This commit is contained in:
Hugobox 2017-12-22 05:16:39 -05:00 committed by Nick O'Leary
parent 256e5360d4
commit 5f4f6e37b5

View File

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