Fix Tidal OAuth — override Accept header on token requests to application/json
This commit is contained in:
parent
8a4672e2eb
commit
917c25afd9
1 changed files with 8 additions and 2 deletions
|
|
@ -369,7 +369,10 @@ class TidalClient:
|
|||
response = self.session.post(
|
||||
self.token_url,
|
||||
data=data,
|
||||
headers={'Content-Type': 'application/x-www-form-urlencoded'},
|
||||
headers={
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'Accept': 'application/json',
|
||||
},
|
||||
timeout=10
|
||||
)
|
||||
|
||||
|
|
@ -414,7 +417,10 @@ class TidalClient:
|
|||
response = self.session.post(
|
||||
self.token_url,
|
||||
data=data,
|
||||
headers={'Content-Type': 'application/x-www-form-urlencoded'},
|
||||
headers={
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'Accept': 'application/json',
|
||||
},
|
||||
timeout=10
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue