Fix bug cause of updates

This commit is contained in:
Caramel 2023-03-15 14:10:53 +01:00
parent dadc954564
commit 10036f1269
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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';