mirror of https://github.com/node-red/node-red.git
Fix tcp in node finishing packets when in streaming base64 receive mode.
parent
432ed264c2
commit
b72ca439e2
|
@ -199,7 +199,7 @@ module.exports = function(RED) {
|
|||
}
|
||||
});
|
||||
socket.on('end', function() {
|
||||
if (!node.stream || (node.datatype === "utf8" && node.newline !== "")) {
|
||||
if (!node.stream || (node.datatype === "utf8" && node.newline !== "") || (node.datatype === "base64")) {
|
||||
if (buffer.length > 0) {
|
||||
var msg = {topic:node.topic, payload:buffer, ip:fromi, port:fromp};
|
||||
msg._session = {type:"tcp",id:id};
|
||||
|
|
Loading…
Reference in New Issue