diff options
| author | Fuwn <[email protected]> | 2023-01-02 20:53:12 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-01-02 20:53:12 -0800 |
| commit | 071cf7297fd6996f7b9e5943a603d66ea9ce3839 (patch) | |
| tree | 11fee72d17b504e67a43046e33184df336ea4ead | |
| parent | fix(spotify.py): headers (diff) | |
| download | rubys_song_skipper-071cf7297fd6996f7b9e5943a603d66ea9ce3839.tar.xz rubys_song_skipper-071cf7297fd6996f7b9e5943a603d66ea9ce3839.zip | |
fix(spotify.py): headers
| -rw-r--r-- | rubys_song_skipper/spotify.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/rubys_song_skipper/spotify.py b/rubys_song_skipper/spotify.py index f816efd..edaad07 100644 --- a/rubys_song_skipper/spotify.py +++ b/rubys_song_skipper/spotify.py @@ -16,9 +16,7 @@ def bearer(code): # "client_secret": CLIENT_SECRET, # }, headers={ - "Authorization": base64.urlsafe_b64encode( - f"{CLIENT_ID}:{CLIENT_SECRET}".encode() - ).decode(), + "Authorization": base64.urlsafe_b64encode(f"{CLIENT_ID}:{CLIENT_SECRET}"), "Accept": "application/json", "Content-Type": "application/x-www-form-urlencoded", "code": code, |