fix: return image/apng media type from animated card endpoint (#196) #204

Merged
cal merged 3 commits from issue/196-bug-apng-endpoint-returns-wrong-media-type-image-p into main 2026-04-08 02:26:05 +00:00
Showing only changes of commit dcff8332a2 - Show all commits

View File

@ -860,7 +860,7 @@ async def get_animated_card(
finally:
await page.close()
return FileResponse(path=cache_path, media_type="image/png", headers=headers)
return FileResponse(path=cache_path, media_type="image/apng", headers=headers)
@router.get("/{player_id}/{card_type}card")