mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix base64 encoding of msg.payload in UDP out node.
This commit is contained in:
parent
995268c5df
commit
6368a43a02
@ -142,7 +142,7 @@ module.exports = function(RED) {
|
|||||||
} else {
|
} else {
|
||||||
var message;
|
var message;
|
||||||
if (node.base64) {
|
if (node.base64) {
|
||||||
message = new Buffer(b64string, 'base64');
|
message = new Buffer(msg.payload, 'base64');
|
||||||
} else if (msg.payload instanceof Buffer) {
|
} else if (msg.payload instanceof Buffer) {
|
||||||
message = msg.payload;
|
message = msg.payload;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user