From 6f0a8196ff1552fc3f6feb20bd40d26ee4d8ba24 Mon Sep 17 00:00:00 2001 From: jj Date: Wed, 4 Dec 2024 18:19:07 +0000 Subject: [PATCH] api/istream: remove icy-metadata header if sent by client --- api/src/stream/internal.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/stream/internal.js b/api/src/stream/internal.js index 751ecfa6..7d8bf4c9 100644 --- a/api/src/stream/internal.js +++ b/api/src/stream/internal.js @@ -123,6 +123,10 @@ async function handleGenericStream(streamInfo, res) { } export function internalStream(streamInfo, res) { + if (streamInfo.headers) { + streamInfo.headers.delete('icy-metadata'); + } + if (streamInfo.service === 'youtube' && !streamInfo.isHLS) { return handleYoutubeStream(streamInfo, res); }