mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-03 19:34:49 +00:00 
			
		
		
		
	Merge pull request #109 from pandamoon21/master
Fix uppercase letters in the fonts extension - Font attachment
This commit is contained in:
		
						commit
						85246ab419
					
				@ -343,6 +343,7 @@ Please refrain from spam or asking for questions that infringe upon a Service's
 | 
				
			|||||||
<a href="https://github.com/Shivelight"><img src="https://images.weserv.nl/?url=avatars.githubusercontent.com/u/20620780?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Shivelight"/></a>
 | 
					<a href="https://github.com/Shivelight"><img src="https://images.weserv.nl/?url=avatars.githubusercontent.com/u/20620780?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Shivelight"/></a>
 | 
				
			||||||
<a href="https://github.com/knowhere01"><img src="https://images.weserv.nl/?url=avatars.githubusercontent.com/u/113712042?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="knowhere01"/></a>
 | 
					<a href="https://github.com/knowhere01"><img src="https://images.weserv.nl/?url=avatars.githubusercontent.com/u/113712042?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="knowhere01"/></a>
 | 
				
			||||||
<a href="https://github.com/retouching"><img src="https://images.weserv.nl/?url=avatars.githubusercontent.com/u/33735357?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="retouching"/></a>
 | 
					<a href="https://github.com/retouching"><img src="https://images.weserv.nl/?url=avatars.githubusercontent.com/u/33735357?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="retouching"/></a>
 | 
				
			||||||
 | 
					<a href="https://github.com/pandamoon21"><img src="https://images.weserv.nl/?url=avatars.githubusercontent.com/u/33972938?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="pandamoon21"/></a>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Licensing
 | 
					## Licensing
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -37,7 +37,7 @@ class Attachment:
 | 
				
			|||||||
            mime_type = {
 | 
					            mime_type = {
 | 
				
			||||||
                ".ttf": "application/x-truetype-font",
 | 
					                ".ttf": "application/x-truetype-font",
 | 
				
			||||||
                ".otf": "application/vnd.ms-opentype"
 | 
					                ".otf": "application/vnd.ms-opentype"
 | 
				
			||||||
            }.get(path.suffix, mimetypes.guess_type(path)[0])
 | 
					            }.get(path.suffix.lower(), mimetypes.guess_type(path)[0])
 | 
				
			||||||
            if not mime_type:
 | 
					            if not mime_type:
 | 
				
			||||||
                raise ValueError("The attachment mime-type could not be automatically detected.")
 | 
					                raise ValueError("The attachment mime-type could not be automatically detected.")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user