Skip to content

Commit

Permalink
remove charset from mimetype for check
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall authored Dec 13, 2024
1 parent c466d7a commit 39cebc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions internal/config/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ func IsAllowedMimeType(mimetype string, allowedFormats []string) bool {
return true
}
}
if format == strings.Split(mimetype, ";")[0] {
return true
}
}
return false
}
Expand Down

0 comments on commit 39cebc5

Please sign in to comment.