Skip to content

Commit

Permalink
Some mimetype fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed May 1, 2024
1 parent 0866d77 commit 0e13fc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion internal/config/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 0e13fc1

Please sign in to comment.