We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3cafe46 + b7c4de1 commit 5b1644eCopy full SHA for 5b1644e
pkg/opds/opds.go
@@ -1245,7 +1245,7 @@ func (h *Handler) getLanguage(r *http.Request) string {
1245
if lang == "" {
1246
lang = h.CFG.Locales.DEFAULT
1247
}
1248
- if strings.Contains(h.CFG.Locales.ACCEPTED, lang) {
+ if _, ok := h.CFG.Locales.Languages[lang]; ok {
1249
return lang
1250
1251
t, _, err := language.ParseAcceptLanguage(r.Header.Get("Accept-Language"))
0 commit comments