feat(storage): save MIME type into storage service

This commit is contained in:
MingxuanGame
2025-08-30 12:36:43 +00:00
parent c167cbcea6
commit 7d79f3cee7
6 changed files with 16 additions and 21 deletions

View File

@@ -135,10 +135,7 @@ async def save_replay(
storage_service = get_storage_service()
replay_path = f"replays/{score.id}_{score.beatmap_id}_{score.user_id}_lazer_replay.osr"
await storage_service.write_file(
replay_path,
bytes(data),
)
await storage_service.write_file(replay_path, bytes(data), "application/x-osu-replay")
class SpectatorHub(Hub[StoreClientState]):