forked from mirrors/amnezia-wg-easy
		
	fix svg images
This commit is contained in:
		
							parent
							
								
									2afe8d177b
								
							
						
					
					
						commit
						87e6ce3f74
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -296,6 +296,7 @@ module.exports = class Server {
 | 
			
		|||
            if (id.endsWith('.json')) setHeader(event, 'Content-Type', 'application/json');
 | 
			
		||||
            if (id.endsWith('.css')) setHeader(event, 'Content-Type', 'text/css');
 | 
			
		||||
            if (id.endsWith('.png')) setHeader(event, 'Content-Type', 'image/png');
 | 
			
		||||
            if (id.endsWith('.svg')) setHeader(event, 'Content-Type', 'image/svg+xml');
 | 
			
		||||
 | 
			
		||||
            return {
 | 
			
		||||
              size: stats.size,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue