Skip to content

Commit 44392ba

Browse files
davidjoyconico974
andauthored
fix: add audio/flac to commonBinaryMimeTypes (#671)
* fix: add audio/flac to commonBinaryMimeTypes This commit adds audio/flac to the commonBinaryMimeTypes set. Mozilla lists audio/flac as a valid media container format in their documentation: https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Containers#flac * Create light-shirts-press.md --------- Co-authored-by: conico974 <nicodorseuil@yahoo.fr>
1 parent 3f85a90 commit 44392ba

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.changeset/light-shirts-press.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/aws": patch
3+
---
4+
5+
fix: add audio/flac to commonBinaryMimeTypes

packages/open-next/src/utils/binary.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const commonBinaryMimeTypes = new Set([
2727
"audio/3gpp",
2828
"audio/aac",
2929
"audio/basic",
30+
"audio/flac",
3031
"audio/mpeg",
3132
"audio/ogg",
3233
"audio/wavaudio/webm",

packages/tests-unit/tests/binary.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ describe("isBinaryContentType", () => {
3939
{ type: "audio/3gpp", binary: true },
4040
{ type: "audio/aac", binary: true },
4141
{ type: "audio/basic", binary: true },
42+
{ type: "audio/flac", binary: true },
4243
{ type: "audio/mpeg", binary: true },
4344
{ type: "audio/ogg", binary: true },
4445
{ type: "audio/wavaudio/webm", binary: true },

0 commit comments

Comments
 (0)