mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Handle numberic msg.payload in HTTP Response node
This commit is contained in:
		| @@ -293,6 +293,9 @@ module.exports = function(RED) { | ||||
|                         msg.res._res.set('content-length', len); | ||||
|                     } | ||||
|  | ||||
|                     if (typeof msg.payload === "number") { | ||||
|                         msg.payload = ""+msg.payload; | ||||
|                     } | ||||
|                     msg.res._res.status(statusCode).send(msg.payload); | ||||
|                 } | ||||
|             } else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user