mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Allow false and 0 in payload for httprequest (#1334)
This commit is contained in:
		
				
					committed by
					
						
						Nick O'Leary
					
				
			
			
				
	
			
			
			
						parent
						
							b3ffd33507
						
					
				
				
					commit
					d8a4e9e1ab
				
			@@ -135,7 +135,7 @@ module.exports = function(RED) {
 | 
			
		||||
            }
 | 
			
		||||
            var payload = null;
 | 
			
		||||
 | 
			
		||||
            if (msg.payload && (method == "POST" || method == "PUT" || method == "PATCH" ) ) {
 | 
			
		||||
            if (typeof msg.payload !== "undefined" && (method == "POST" || method == "PUT" || method == "PATCH" ) ) {
 | 
			
		||||
                if (typeof msg.payload === "string" || Buffer.isBuffer(msg.payload)) {
 | 
			
		||||
                    payload = msg.payload;
 | 
			
		||||
                } else if (typeof msg.payload == "number") {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user