diff --git a/Dockerfile b/Dockerfile index 75d40af..f8244aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ RUN adduser -S -G nobody scyllaridae RUN apk update && \ apk add --no-cache \ - curl==8.11.0-r2 \ + curl==8.11.1-r0 \ bash==5.2.26-r0 \ ca-certificates==20240705-r0 \ openssl==3.3.2-r1 diff --git a/internal/config/server.go b/internal/config/server.go index 0cdb4c9..1fa31ca 100644 --- a/internal/config/server.go +++ b/internal/config/server.go @@ -105,6 +105,9 @@ func IsAllowedMimeType(mimetype string, allowedFormats []string) bool { return true } } + if format == strings.Split(mimetype, ";")[0] { + return true + } } return false }