mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Fixed bug when settings custom http headers.
This commit is contained in:
		
							parent
							
								
									30e15efd8d
								
							
						
					
					
						commit
						f2e95317b6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -5800,7 +5800,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
 | 
			
		|||
 | 
			
		||||
            // If this domain has configured headers, add them. If a header is set to null, remove it.
 | 
			
		||||
            if ((domain != null) && (domain.httpheaders != null) && (typeof domain.httpheaders == 'object')) {
 | 
			
		||||
                for (var i in domain.httpheaders) { if (domain.httpheaders === null) { delete headers[i]; } else { headers[i] = domain.httpheaders[i]; } }
 | 
			
		||||
                for (var i in domain.httpheaders) { if (domain.httpheaders[i] === null) { delete headers[i]; } else { headers[i] = domain.httpheaders[i]; } }
 | 
			
		||||
            }
 | 
			
		||||
            res.set(headers);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue