From 6b727404befd8ec698e456d106a9ee40bc114af8 Mon Sep 17 00:00:00 2001 From: Daenney Date: Sat, 28 Dec 2024 11:02:12 +0100 Subject: [bugfix] Advertise audio/mpeg as supported (#3632) This will be either an mp1, mp2 or mp3 file. In practice it'll probably be mp3, but this handles mp1 too for good measure. We don't advertise audio/mp1 as a supported media type since best I can tell that was never a MIME type that's been used. This also changes the returned MIME-type for mp2 and mp3 to audio/mpeg, to match what's expected and supported by most things nowadays. Fixes: #3531 --- internal/typeutils/internaltofrontend_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/typeutils/internaltofrontend_test.go') diff --git a/internal/typeutils/internaltofrontend_test.go b/internal/typeutils/internaltofrontend_test.go index 39a9bd9d4..005abf4eb 100644 --- a/internal/typeutils/internaltofrontend_test.go +++ b/internal/typeutils/internaltofrontend_test.go @@ -1960,6 +1960,7 @@ func (suite *InternalToFrontendTestSuite) TestInstanceV1ToFrontend() { "image/webp", "audio/mp2", "audio/mp3", + "audio/mpeg", "video/x-msvideo", "audio/flac", "audio/x-flac", @@ -2105,6 +2106,7 @@ func (suite *InternalToFrontendTestSuite) TestInstanceV2ToFrontend() { "image/webp", "audio/mp2", "audio/mp3", + "audio/mpeg", "video/x-msvideo", "audio/flac", "audio/x-flac", -- cgit v1.2.3