From 917c25afd94afbc15d52bfccc83be2f7e663f567 Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Thu, 12 Mar 2026 09:35:36 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20Tidal=20OAuth=20=E2=80=94=20override=20Ac?= =?UTF-8?q?cept=20header=20on=20token=20requests=20to=20application/json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/tidal_client.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/tidal_client.py b/core/tidal_client.py index bd8d13ee..1d629126 100644 --- a/core/tidal_client.py +++ b/core/tidal_client.py @@ -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 )