Umputun
2019-04-13 14:52:21 -05:00
parent 6bdbcb8351
commit 2a53a54a78
+1 -1
View File
@@ -132,7 +132,7 @@ func (s *Service) Close() {
// check if file f is a valid image format, i.e. gif, png or jpeg
func isValidImage(b []byte) bool {
ct := http.DetectContentType(b)
return ct == "image/gif" || ct == "image/png" || ct == "image/jpeg"
return ct == "image/gif" || ct == "image/png" || ct == "image/jpeg" || ct == "image/webp"
}
// guid makes a globally unique id