mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 00:34:26 -05:00 
			
		
		
		
	Fixed an error that would show up in the console when a club image couldn't be drawn in certain circumstances
This commit is contained in:
		@@ -357,7 +357,7 @@ namespace NadekoBot.Extensions
 | 
			
		||||
 | 
			
		||||
        public static bool IsImage(this HttpResponseMessage msg, out string mimeType)
 | 
			
		||||
        {
 | 
			
		||||
            mimeType = msg.Content.Headers.ContentType.MediaType;
 | 
			
		||||
            mimeType = msg.Content.Headers.ContentType?.MediaType;
 | 
			
		||||
            if (mimeType == "image/png"
 | 
			
		||||
                    || mimeType == "image/jpeg"
 | 
			
		||||
                    || mimeType == "image/gif")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user