diff options
| author | Fuwn <[email protected]> | 2023-01-02 20:53:43 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-01-02 20:53:43 -0800 |
| commit | 7cc713150843d646d0a2aaf1ccafac8efb6a6efb (patch) | |
| tree | 0853cc837cf686e357775fdd5610ab1de25dd4f2 | |
| parent | fix(spotify.py): headers (diff) | |
| download | rubys_song_skipper-7cc713150843d646d0a2aaf1ccafac8efb6a6efb.tar.xz rubys_song_skipper-7cc713150843d646d0a2aaf1ccafac8efb6a6efb.zip | |
fix(spotify.py): headers
| -rw-r--r-- | rubys_song_skipper/spotify.py | 4 |
1 files changed, 3 insertions, 1 deletions
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, |