Fixed Invalid character in "Accept-Language" issue

This commit is contained in:
RemixDev 2021-10-28 15:02:55 +02:00
parent d7541fd79e
commit b06ee74116

View file

@ -127,7 +127,7 @@ class Deezer{
if (this.childs.length-1 < child_n) child_n = 0
this.current_user = this.childs[child_n]
this.selected_account = child_n
this.http_headers["Accept-Language"] = this.current_user.language
this.http_headers["Accept-Language"] = this.current_user.language.replace(/[^0-9A-Za-z *,-.;=]/g, '')
return [this.current_user, this.selected_account]
}