Skip to content

Commit 186acbd

Browse files
committed
Tighten application/grpc check to avoid including JSON
1 parent 35b4bc6 commit 186acbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/model/events/content-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export function getCompatibleTypes(
166166
types.add('xml');
167167
}
168168

169-
if (!types.has('grpc') && rawContentType && rawContentType.startsWith('application/grpc')) {
169+
if (!types.has('grpc') && rawContentType && rawContentType === 'application/grpc') {
170170
types.add('grpc')
171171
}
172172
if (

0 commit comments

Comments
 (0)