mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 19:07:40 +01:00
Fix incorrect JanitorAI/JannyAI import due to incorrect HTTP header
This commit is contained in:
parent
68de3fed59
commit
ace6e9d18d
@ -434,7 +434,7 @@ async function downloadJannyCharacter(uuid) {
|
||||
const imageResult = await fetch(downloadResult.downloadUrl);
|
||||
const buffer = await imageResult.buffer();
|
||||
const fileName = `${sanitize(uuid)}.png`;
|
||||
const fileType = result.headers.get('content-type');
|
||||
const fileType = imageResult.headers.get('content-type');
|
||||
|
||||
return { buffer, fileName, fileType };
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user