fix content type of multi client stream
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sun, 10 Apr 2022 17:43:21 +0000 (19:43 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Sun, 10 Apr 2022 17:43:21 +0000 (19:43 +0200)
music_assistant/controllers/stream.py

index a3bac42cde3f01407734089ed0b7cf931ad5a1bc..7bf941e05aad7cd814238dbdc4e165e13946a7d7 100644 (file)
@@ -7,6 +7,7 @@ from time import time
 from typing import AsyncGenerator, Dict, Optional, Set
 
 from aiohttp import web
+
 from music_assistant.constants import EventType
 from music_assistant.helpers.audio import (
     check_audio_support,
@@ -153,7 +154,7 @@ class StreamController:
         resp = web.StreamResponse(
             status=200,
             reason="OK",
-            headers={"Content-Type": fmt},
+            headers={"Content-Type": f"audio/{fmt}"},
         )
         await resp.prepare(request)