mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge pull request #2611 from ayancey/jannyai-header-bug
Fix incorrect JanitorAI/JannyAI import due to incorrect HTTP header
This commit is contained in:
@ -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 };
|
||||
}
|
||||
|
Reference in New Issue
Block a user