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

pull/253/head
Broque Thomas 2 months ago
parent 8a4672e2eb
commit 917c25afd9

@ -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…
Cancel
Save