We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3ffd33 commit d8a4e9eCopy full SHA for d8a4e9e
1 file changed
nodes/core/io/21-httprequest.js
@@ -135,7 +135,7 @@ module.exports = function(RED) {
135
}
136
var payload = null;
137
138
- if (msg.payload && (method == "POST" || method == "PUT" || method == "PATCH" ) ) {
+ if (typeof msg.payload !== "undefined" && (method == "POST" || method == "PUT" || method == "PATCH" ) ) {
139
if (typeof msg.payload === "string" || Buffer.isBuffer(msg.payload)) {
140
payload = msg.payload;
141
} else if (typeof msg.payload == "number") {
0 commit comments