mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 04:22:25 -05:00 
			
		
		
		
	fix possible nil panic (#2809)
This commit is contained in:
		
					parent
					
						
							
								236604bd6b
							
						
					
				
			
			
				commit
				
					
						83e7847cdf
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -121,7 +121,7 @@ func isUTF8ContentType(p []string) ([]string, bool) { | ||||||
| 	for i, part := range p { | 	for i, part := range p { | ||||||
| 
 | 
 | ||||||
| 		// Only handle charset slice parts. | 		// Only handle charset slice parts. | ||||||
| 		if part[:len(charset)] == charset { | 		if strings.HasPrefix(part, charset) { | ||||||
| 
 | 
 | ||||||
| 			// Check if is UTF-8 charset. | 			// Check if is UTF-8 charset. | ||||||
| 			ok := (part == charsetUTF8) | 			ok := (part == charsetUTF8) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue