mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
fix #1514
This commit is contained in:
parent
13abf92b76
commit
b013f66209
@ -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":
|
||||
|
Loading…
x
Reference in New Issue
Block a user