summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-01-02 20:54:27 -0800
committerFuwn <[email protected]>2023-01-02 20:54:27 -0800
commita902d2dd875fa4a6b68cb7bfaf9f33f9e0c025c6 (patch)
tree5db82d553e57146114f88e0c7649f5dcdb36e192
parentfix(spotify.py): headers (diff)
downloadrubys_song_skipper-a902d2dd875fa4a6b68cb7bfaf9f33f9e0c025c6.tar.xz
rubys_song_skipper-a902d2dd875fa4a6b68cb7bfaf9f33f9e0c025c6.zip
fix(spotify.py): headers
-rw-r--r--rubys_song_skipper/spotify.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/rubys_song_skipper/spotify.py b/rubys_song_skipper/spotify.py
index 64ed8b5..923f496 100644
--- a/rubys_song_skipper/spotify.py
+++ b/rubys_song_skipper/spotify.py
@@ -17,7 +17,9 @@ def bearer(code):
# },
headers={
"Authorization": str(
- base64.urlsafe_b64encode(f"{CLIENT_ID}:{CLIENT_SECRET}")
+ base64.urlsafe_b64encode(
+ f"{CLIENT_ID}:{CLIENT_SECRET}".encode()
+ ).decode()
),
"Accept": "application/json",
"Content-Type": "application/x-www-form-urlencoded",