Skip to content

Commit 9f015ff

Browse files
committed
refactor: add support for application/octet-stream
1 parent 325e308 commit 9f015ff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/schema-routes/schema-routes.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,10 @@ export class SchemaRoutes {
296296
return CONTENT_KIND.FORM_DATA;
297297
}
298298

299-
if (contentTypes.some((contentType) => contentType.includes("image/"))) {
299+
if (
300+
contentTypes.some((contentType) => contentType.includes("image/")) ||
301+
contentTypes.some((contentType) => contentType.includes("application/octet-stream"))
302+
) {
300303
return CONTENT_KIND.IMAGE;
301304
}
302305

0 commit comments

Comments
 (0)