mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	Add document mime types.
This commit is contained in:
		
							parent
							
								
									cf989d6b26
								
							
						
					
					
						commit
						bceac2ff26
					
				@ -112,6 +112,20 @@ namespace MediaBrowser.Common.Net
 | 
			
		||||
                return "application/xml";
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            // Type document
 | 
			
		||||
            if (ext.Equals(".pdf", StringComparison.OrdinalIgnoreCase))
 | 
			
		||||
            {
 | 
			
		||||
                return "application/pdf";
 | 
			
		||||
            }
 | 
			
		||||
            if (ext.Equals(".mobi", StringComparison.OrdinalIgnoreCase))
 | 
			
		||||
            {
 | 
			
		||||
                return "application/x-mobipocket-ebook";
 | 
			
		||||
            }
 | 
			
		||||
            if (ext.Equals(".epub", StringComparison.OrdinalIgnoreCase))
 | 
			
		||||
            {
 | 
			
		||||
                return "application/epub+zip";
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            // Type image
 | 
			
		||||
            if (ext.Equals(".gif", StringComparison.OrdinalIgnoreCase))
 | 
			
		||||
            {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user