diff --git a/transcoder/util.go b/transcoder/util.go index f8711ea..1fd4ad4 100644 --- a/transcoder/util.go +++ b/transcoder/util.go @@ -7,7 +7,7 @@ import ( func SupportsWebP(headers http.Header) bool { for _, v := range strings.Split(headers.Get("Accept"), ",") { - if strings.SplitN(v, ";", 2)[0] == "image/webp" { + if strings.SplitN(v, ";", 2)[0] == "image/webp" || strings.SplitN(v, ";", 2)[0] == "*/*" || strings.SplitN(v, ";", 2)[0] == "" { return true } }