Fix Tidal OAuth — override Accept header on token requests to application/json

This commit is contained in:
Broque Thomas 2026-03-12 09:35:36 -07:00
parent 8a4672e2eb
commit 917c25afd9

View file

@ -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
)