mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge branch 'master' into tabs
This commit is contained in:
commit
9e072cf182
@ -106,7 +106,7 @@ function HTTPRequest(n) {
|
|||||||
msg.statusCode = err.code;
|
msg.statusCode = err.code;
|
||||||
node.send(msg);
|
node.send(msg);
|
||||||
});
|
});
|
||||||
if (msg.payload && (method == "PUSH" || method == "PUT") ) {
|
if (msg.payload && (method == "POST" || method == "PUT") ) {
|
||||||
if (typeof msg.payload === "string" || Buffer.isBuffer(msg.payload)) {
|
if (typeof msg.payload === "string" || Buffer.isBuffer(msg.payload)) {
|
||||||
req.write(msg.payload);
|
req.write(msg.payload);
|
||||||
} else if (typeof msg.payload == "number") {
|
} else if (typeof msg.payload == "number") {
|
||||||
|
Loading…
Reference in New Issue
Block a user