Move mimetype registration to gemini.go
This commit is contained in:
		
							parent
							
								
									48c67bcead
								
							
						
					
					
						commit
						6181751e8d
					
				
							
								
								
									
										6
									
								
								fs.go
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								fs.go
									
									
									
									
									
								
							@ -13,12 +13,6 @@ import (
 | 
			
		||||
	"strings"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func init() {
 | 
			
		||||
	// Add Gemini mime types
 | 
			
		||||
	mime.AddExtensionType(".gmi", "text/gemini")
 | 
			
		||||
	mime.AddExtensionType(".gemini", "text/gemini")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// FileServer returns a handler that serves Gemini requests with the contents
 | 
			
		||||
// of the provided file system.
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user