diff options
| author | Fuwn <[email protected]> | 2023-01-02 20:55:39 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-01-02 20:55:39 -0800 |
| commit | 84374f2de19a3c54aa5954a6b65d9671784568e0 (patch) | |
| tree | 24ef1f335f9c4d92080ea042139362ea7863223f | |
| parent | fix(spotify.py): headers (diff) | |
| download | rubys_song_skipper-84374f2de19a3c54aa5954a6b65d9671784568e0.tar.xz rubys_song_skipper-84374f2de19a3c54aa5954a6b65d9671784568e0.zip | |
fix(spotify.py): headers
| -rw-r--r-- | rubys_song_skipper/spotify.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/rubys_song_skipper/spotify.py b/rubys_song_skipper/spotify.py index 923f496..6eafa7a 100644 --- a/rubys_song_skipper/spotify.py +++ b/rubys_song_skipper/spotify.py @@ -16,11 +16,9 @@ def bearer(code): # "client_secret": CLIENT_SECRET, # }, headers={ - "Authorization": str( - base64.urlsafe_b64encode( - f"{CLIENT_ID}:{CLIENT_SECRET}".encode() - ).decode() - ), + "Authorization": base64.urlsafe_b64encode( + f"{CLIENT_ID}:{CLIENT_SECRET}".encode() + ).decode("ascii"), "Accept": "application/json", "Content-Type": "application/x-www-form-urlencoded", "code": code, |