Skip to content

Commit

Permalink
proxy: remove obsolete function GetAudioFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
Wessie committed Jun 3, 2024
1 parent 9ac88c4 commit 5d08ca6
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions proxy/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,3 @@ func GetMountpoint(r *http.Request) string {
}
return strings.ToLower(r.URL.Path)
}

func GetAudioFormat(r *http.Request) string {
switch r.Header.Get("Content-Type") {
case "audio/mpeg":
return "MP3"
case "audio/ogg", "application/ogg":
return "OGG"
}
return ""
}

0 comments on commit 5d08ca6

Please sign in to comment.