zmb3 / spotify

A Go wrapper for the Spotify Web API
Apache License 2.0
1.37k stars 287 forks source link

Client.execute: Don't return EOF for response status 204 #110

Closed Nikos410 closed 4 years ago

Nikos410 commented 4 years ago

Implements the behaviour from #88 for client.execute() as well.

This prevents an EOF error when client.execute() receives status 204 (No Content), e.g. when client.PlayerCurrentlyPlaying() is called while nothing is playing.

Resolves #109.

zmb3 commented 4 years ago

Thanks @Nikos410!!