mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix tcp in node finishing packets when in streaming base64 receive mode.
This commit is contained in:
		@@ -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};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user