mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 09:18:27 -04: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:
@@ -23,7 +23,7 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog.
|
||||
- `.slot` redesigned (and updated entries in `images.yml`)
|
||||
- Reduced required permissions for .qdel (thanks to tbodt)
|
||||
|
||||
## [3.0.7] - 5.10.2021
|
||||
## [3.0.7] - 05.10.2021
|
||||
|
||||
### Added
|
||||
- `.streamsclear` re-added. It will remove all followed streams on the server.
|
||||
|
@@ -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