Fixed Follow endpoint always returning false, closes #496

This commit is contained in:
Jonas Dellinger 2020-08-20 14:09:16 +02:00
parent dfecf9f7fd
commit 5f57b505ed

View File

@ -32,7 +32,7 @@ namespace SpotifyAPI.Web
var statusCode = await API var statusCode = await API
.Put(URLs.CurrentUserFollower(), request.BuildQueryParams(), request.BuildBodyParams()) .Put(URLs.CurrentUserFollower(), request.BuildQueryParams(), request.BuildBodyParams())
.ConfigureAwait(false); .ConfigureAwait(false);
return statusCode == HttpStatusCode.OK; return statusCode == HttpStatusCode.NoContent;
} }
public async Task<bool> FollowPlaylist(string playlistId) public async Task<bool> FollowPlaylist(string playlistId)