mirror of
https://gitlab.com/RemixDev/deezer-js.git
synced 2025-01-29 17:48:29 +00:00
Fixed Invalid character in "Accept-Language" issue
This commit is contained in:
parent
d7541fd79e
commit
b06ee74116
|
@ -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]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue