mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-11-03 08:14:28 -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:
@@ -23,7 +23,7 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog.
|
|||||||
- `.slot` redesigned (and updated entries in `images.yml`)
|
- `.slot` redesigned (and updated entries in `images.yml`)
|
||||||
- Reduced required permissions for .qdel (thanks to tbodt)
|
- Reduced required permissions for .qdel (thanks to tbodt)
|
||||||
|
|
||||||
## [3.0.7] - 5.10.2021
|
## [3.0.7] - 05.10.2021
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- `.streamsclear` re-added. It will remove all followed streams on the server.
|
- `.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)
|
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"
|
if (mimeType == "image/png"
|
||||||
|| mimeType == "image/jpeg"
|
|| mimeType == "image/jpeg"
|
||||||
|| mimeType == "image/gif")
|
|| mimeType == "image/gif")
|
||||||
|
|||||||
Reference in New Issue
Block a user