mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	Refactor: Better comment
This commit is contained in:
		
							parent
							
								
									27c6ebebc0
								
							
						
					
					
						commit
						5cb338d5b1
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -14,7 +14,7 @@ import vhost = require('vhost');
 | 
			
		|||
const app = express();
 | 
			
		||||
app.disable('x-powered-by');
 | 
			
		||||
 | 
			
		||||
// Reject request that without 'Host' header
 | 
			
		||||
// Drop request that without 'Host' header
 | 
			
		||||
app.use((req, res, next) => {
 | 
			
		||||
	if (!req.headers.host) {
 | 
			
		||||
		res.sendStatus(400);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue