Skip to content

Commit a139825

Browse files
authored
Update Protobuf Content Types
Adds 'application/x-protobuffer' and 'application/grpc'.
1 parent 0989258 commit a139825

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/model/events/content-types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ const mimeTypeToContentTypeMap: { [mimeType: string]: ViewableContentType } = {
9494
'application/vnd.google.protobuf': 'protobuf',
9595
'application/x-google-protobuf': 'protobuf',
9696
'application/proto': 'protobuf', // N.b. this covers all application/XXX+proto values
97+
'application/grpc': 'protobuf', // Used in GRPC requests
98+
'application/x-protobuffer': 'protobuf' // Commonly seen in Google apps
9799

98100
'application/octet-stream': 'raw'
99101
} as const;
@@ -192,4 +194,4 @@ export function getCompatibleTypes(
192194
types.add('raw');
193195

194196
return Array.from(types);
195-
}
197+
}

0 commit comments

Comments
 (0)