From 8f17ee908cff0cf18ba92b865a2ecdba4d6e826d Mon Sep 17 00:00:00 2001 From: Jonas Dellinger Date: Thu, 27 Aug 2020 14:07:49 +0200 Subject: [PATCH] Use 200 as success code in SaveAlbum/SaveTracks/SaveShows, closes #496 --- SpotifyAPI.Web/Clients/LibraryClient.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SpotifyAPI.Web/Clients/LibraryClient.cs b/SpotifyAPI.Web/Clients/LibraryClient.cs index 55a66836..7c8639f4 100644 --- a/SpotifyAPI.Web/Clients/LibraryClient.cs +++ b/SpotifyAPI.Web/Clients/LibraryClient.cs @@ -95,7 +95,7 @@ namespace SpotifyAPI.Web Ensure.ArgumentNotNull(request, nameof(request)); var statusCode = await API.Put(SpotifyUrls.LibraryAlbums(), request.BuildQueryParams(), null).ConfigureAwait(false); - return statusCode == HttpStatusCode.Created; + return statusCode == HttpStatusCode.OK; } public async Task SaveShows(LibrarySaveShowsRequest request) @@ -103,7 +103,7 @@ namespace SpotifyAPI.Web Ensure.ArgumentNotNull(request, nameof(request)); var statusCode = await API.Put(SpotifyUrls.LibraryShows(), request.BuildQueryParams(), null).ConfigureAwait(false); - return statusCode == HttpStatusCode.Created; + return statusCode == HttpStatusCode.OK; } public async Task SaveTracks(LibrarySaveTracksRequest request) @@ -111,7 +111,7 @@ namespace SpotifyAPI.Web Ensure.ArgumentNotNull(request, nameof(request)); var statusCode = await API.Put(SpotifyUrls.LibraryTracks(), request.BuildQueryParams(), null).ConfigureAwait(false); - return statusCode == HttpStatusCode.Created; + return statusCode == HttpStatusCode.OK; } } }