mirror of
https://github.com/CaramelFur/Picsur.git
synced 2025-10-25 23:46:06 +02:00
Fix bug cause of updates
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user