fix typo
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 17 Jun 2022 19:25:03 +0000 (21:25 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 17 Jun 2022 19:25:03 +0000 (21:25 +0200)
music_assistant/controllers/streams.py

index c60d7dcb528603e35adf6c66362e1701285b25d8..7e715d17890d3af00e2bd8aca164efb6811f4b49 100644 (file)
@@ -160,9 +160,10 @@ class StreamsController:
             "Connection": "Close",
             "contentFeatures.dlna.org": "DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=0d500000000000000000000000000000",
         }
+        resp = web.StreamResponse(headers=headers)
+        await resp.prepare(request)
+
         if request.method == "GET":
-            resp = web.StreamResponse(headers=headers)
-            await resp.prepare(request)
             client_id = request.remote
             await queue_stream.subscribe(client_id, resp.write)