1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 19:17:37 +08:00
This commit is contained in:
Mrs4s 2022-06-06 22:40:09 +08:00
parent 13abf92b76
commit b013f66209
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7

View File

@ -31,6 +31,9 @@ func checkImage(r io.ReadSeeker) (ok bool, t string) {
if base.SkipMimeScan {
return true, ""
}
if r == nil {
return false, "image/nil-stream"
}
t = scan(r)
switch t {
case "image/bmp", "image/gif", "image/jpeg", "image/png", "image/webp":