From 9f015ffa6e4b4e67be0fbb6005a441b64a376215 Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Thu, 12 Dec 2024 10:57:33 +0100 Subject: [PATCH] refactor: add support for application/octet-stream --- src/schema-routes/schema-routes.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/schema-routes/schema-routes.ts b/src/schema-routes/schema-routes.ts index 9ad602542..1a36c9abb 100644 --- a/src/schema-routes/schema-routes.ts +++ b/src/schema-routes/schema-routes.ts @@ -296,7 +296,10 @@ export class SchemaRoutes { return CONTENT_KIND.FORM_DATA; } - if (contentTypes.some((contentType) => contentType.includes("image/"))) { + if ( + contentTypes.some((contentType) => contentType.includes("image/")) || + contentTypes.some((contentType) => contentType.includes("application/octet-stream")) + ) { return CONTENT_KIND.IMAGE; }