From 7cc713150843d646d0a2aaf1ccafac8efb6a6efb Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 2 Jan 2023 20:53:43 -0800 Subject: fix(spotify.py): headers --- rubys_song_skipper/spotify.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rubys_song_skipper/spotify.py b/rubys_song_skipper/spotify.py index edaad07..64ed8b5 100644 --- a/rubys_song_skipper/spotify.py +++ b/rubys_song_skipper/spotify.py @@ -16,7 +16,9 @@ def bearer(code): # "client_secret": CLIENT_SECRET, # }, headers={ - "Authorization": base64.urlsafe_b64encode(f"{CLIENT_ID}:{CLIENT_SECRET}"), + "Authorization": str( + base64.urlsafe_b64encode(f"{CLIENT_ID}:{CLIENT_SECRET}") + ), "Accept": "application/json", "Content-Type": "application/x-www-form-urlencoded", "code": code, -- cgit v1.2.3