mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	| @@ -244,6 +244,11 @@ module.exports = function(RED) { | ||||
|                         } | ||||
|                     } | ||||
|  | ||||
|                     // Check that msg.payload is an array - if the req error | ||||
|                     // handler has been called, it will have been set to a string | ||||
|                     // and the error already handled - so no further action should | ||||
|                     // be taken. #1344 | ||||
|                     if (Array.isArray(msg.payload)) { | ||||
|                         // Convert the payload to the required return type | ||||
|                         msg.payload = Buffer.concat(msg.payload); // bin | ||||
|                         if (node.ret !== "bin") { | ||||
| @@ -257,6 +262,7 @@ module.exports = function(RED) { | ||||
|  | ||||
|                         node.send(msg); | ||||
|                         node.status({}); | ||||
|                     } | ||||
|                 }); | ||||
|             }); | ||||
|             req.setTimeout(node.reqTimeout, function() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user