🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
DefaultLanguage is now case-insensitive
Deluanbfeb8ef6b3e5
diff --git a/server/serve_index.go b/server/serve_index.goindex 6ad363a36..182456330 100644--- a/server/serve_index.go+++ b/server/serve_index.go@@ -38,7 +38,7 @@ func serveIndex(ds model.DataStore, fs fs.FS) http.HandlerFunc {"enableFavourites": conf.Server.EnableFavourites,"enableStarRating": conf.Server.EnableStarRating,"defaultTheme": conf.Server.DefaultTheme,- "defaultLanguage": conf.Server.DefaultLanguage,+ "defaultLanguage": strings.ToLower(conf.Server.DefaultLanguage),"enableCoverAnimation": conf.Server.EnableCoverAnimation,"gaTrackingId": conf.Server.GATrackingID,"losslessFormats": strings.ToUpper(strings.Join(consts.LosslessFormats, ",")),diff --git a/server/serve_index_test.go b/server/serve_index_test.goindex 223309de4..d602a7fe2 100644--- a/server/serve_index_test.go+++ b/server/serve_index_test.go@@ -160,7 +160,7 @@ var _ = Describe("serveIndex", func() {})It("sets the defaultLanguage", func() {- conf.Server.DefaultLanguage = "pt"+ conf.Server.DefaultLanguage = "PT"r := httptest.NewRequest("GET", "/index.html", nil)w := httptest.NewRecorder()