Merge pull request #2611 from ayancey/jannyai-header-bug
Fix incorrect JanitorAI/JannyAI import due to incorrect HTTP header
This commit is contained in:
commit
6cd40be5a3
|
@ -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…
Reference in New Issue