Skip to content

Commit 39bcad9

Browse files
committed
add protobuf to common binary formats
1 parent 6afd7ab commit 39bcad9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ const commonBinaryMimeTypes = new Set([
5454
"application/x-tar",
5555
"application/x-zip",
5656
"application/zip",
57+
// Serialized data
58+
"application/x-protobuf",
5759
]);
5860

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

packages/utils/src/binary.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ const commonBinaryMimeTypes = new Set([
5454
"application/x-tar",
5555
"application/x-zip",
5656
"application/zip",
57+
// Serialized data
58+
"application/x-protobuf",
5759
]);
5860

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

0 commit comments

Comments
 (0)