From 10036f126927fae4e3531d8846695916d7550df3 Mon Sep 17 00:00:00 2001 From: Caramel Date: Wed, 15 Mar 2023 14:10:53 +0100 Subject: [PATCH] Fix bug cause of updates --- frontend/src/app/services/api/api.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/services/api/api.service.ts b/frontend/src/app/services/api/api.service.ts index de5917b..d7f9541 100644 --- a/frontend/src/app/services/api/api.service.ts +++ b/frontend/src/app/services/api/api.service.ts @@ -180,7 +180,7 @@ export class ApiService { }); return MapRunningRequest(response, async (r) => { - const mimeType = r.headers['Content-Type'] ?? 'other/unknown'; + const mimeType = r.headers['Content-Type']?.toString() ?? 'other/unknown'; let name = r.headers['Content-Disposition']; if (!name) { name = url.split('/').pop() ?? 'unnamed';