mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 14:46:26 +00:00
Use 200 as success code in SaveAlbum/SaveTracks/SaveShows, closes #496
This commit is contained in:
parent
952d46f58f
commit
8f17ee908c
@ -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<bool> 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<bool> 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user