mirror of https://github.com/node-red/node-red.git
Fix base64 encoding of msg.payload in UDP out node.
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