diff --git a/internal/config/server.go b/internal/config/server.go index e5dc3f0..946e02f 100644 --- a/internal/config/server.go +++ b/internal/config/server.go @@ -182,7 +182,6 @@ func getMimeTypeExtension(mimeType string) (string, error) { "audio/ogg": "ogg", "audio/webm": "webm", "audio/flac": "flac", - "audio/aac": "aac", "audio/mpeg": "mp3", "audio/x-m4a": "m4a", "audio/x-realaudio": "ra", diff --git a/main_test.go b/main_test.go index eb8cdd7..7c79b7b 100644 --- a/main_test.go +++ b/main_test.go @@ -284,7 +284,7 @@ func TestMimeTypes(t *testing.T) { "audio/mpeg": "mp3", "audio/x-wav": "wav", "audio/ogg": "ogg", - "audio/aac": "aac", + "audio/aac": "m4a", "audio/webm": "webm", "audio/flac": "flac", "audio/midi": "mid", @@ -304,6 +304,7 @@ func TestMimeTypes(t *testing.T) { "video/x-m4v": "m4v", "video/x-mng": "mng", "video/x-ms-asf": "asx", + "video/ogg": "ogg", "text/plain": "txt", "text/html": "html",