Merge pull request #2611 from ayancey/jannyai-header-bug

Fix incorrect JanitorAI/JannyAI import due to incorrect HTTP header
This commit is contained in:
Cohee 2024-08-03 16:34:15 +03:00 committed by GitHub
commit 6cd40be5a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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