mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 11:02:25 -05:00
[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
This commit is contained in:
parent
0784aa3218
commit
6b727404be
4 changed files with 16 additions and 4 deletions
|
|
@ -113,6 +113,7 @@ func (suite *InstancePatchTestSuite) TestInstancePatch1() {
|
|||
"image/webp",
|
||||
"audio/mp2",
|
||||
"audio/mp3",
|
||||
"audio/mpeg",
|
||||
"video/x-msvideo",
|
||||
"audio/flac",
|
||||
"audio/x-flac",
|
||||
|
|
@ -254,6 +255,7 @@ func (suite *InstancePatchTestSuite) TestInstancePatch2() {
|
|||
"image/webp",
|
||||
"audio/mp2",
|
||||
"audio/mp3",
|
||||
"audio/mpeg",
|
||||
"video/x-msvideo",
|
||||
"audio/flac",
|
||||
"audio/x-flac",
|
||||
|
|
@ -395,6 +397,7 @@ func (suite *InstancePatchTestSuite) TestInstancePatch3() {
|
|||
"image/webp",
|
||||
"audio/mp2",
|
||||
"audio/mp3",
|
||||
"audio/mpeg",
|
||||
"video/x-msvideo",
|
||||
"audio/flac",
|
||||
"audio/x-flac",
|
||||
|
|
@ -587,6 +590,7 @@ func (suite *InstancePatchTestSuite) TestInstancePatch6() {
|
|||
"image/webp",
|
||||
"audio/mp2",
|
||||
"audio/mp3",
|
||||
"audio/mpeg",
|
||||
"video/x-msvideo",
|
||||
"audio/flac",
|
||||
"audio/x-flac",
|
||||
|
|
@ -750,6 +754,7 @@ func (suite *InstancePatchTestSuite) TestInstancePatch8() {
|
|||
"image/webp",
|
||||
"audio/mp2",
|
||||
"audio/mp3",
|
||||
"audio/mpeg",
|
||||
"video/x-msvideo",
|
||||
"audio/flac",
|
||||
"audio/x-flac",
|
||||
|
|
@ -932,6 +937,7 @@ func (suite *InstancePatchTestSuite) TestInstancePatch9() {
|
|||
"image/webp",
|
||||
"audio/mp2",
|
||||
"audio/mp3",
|
||||
"audio/mpeg",
|
||||
"video/x-msvideo",
|
||||
"audio/flac",
|
||||
"audio/x-flac",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue