Skip to content

Commit

Permalink
Add protobuf to common binary formats (#575)
Browse files Browse the repository at this point in the history
* add protobuf to common binary formats

* Create honest-keys-protect.md

---------

Co-authored-by: conico974 <nicodorseuil@yahoo.fr>
  • Loading branch information
zdenham and conico974 authored Oct 25, 2024
1 parent 9f6eeab commit c8cf0fc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-keys-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@opennextjs/aws": patch
---

Add protobuf to common binary formats
2 changes: 2 additions & 0 deletions packages/open-next/src/adapters/binary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ const commonBinaryMimeTypes = new Set([
"application/x-tar",
"application/x-zip",
"application/zip",
// Serialized data
"application/x-protobuf",
]);

export function isBinaryContentType(contentType?: string | null) {
Expand Down
2 changes: 2 additions & 0 deletions packages/utils/src/binary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ const commonBinaryMimeTypes = new Set([
"application/x-tar",
"application/x-zip",
"application/zip",
// Serialized data
"application/x-protobuf",
]);

export function isBinaryContentType(contentType?: string | null) {
Expand Down

0 comments on commit c8cf0fc

Please sign in to comment.