fix(subsonic): send valid content-type with http.ServeStream
This commit is contained in:
@@ -2,6 +2,7 @@ package spec
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"go.senan.xyz/gonic"
|
||||
@@ -422,3 +423,7 @@ func formatRating(rating float64) string {
|
||||
}
|
||||
return fmt.Sprintf("%.2f", rating)
|
||||
}
|
||||
|
||||
func formatExt(ext string) string {
|
||||
return strings.TrimPrefix(ext, ".")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user