Skip to content

Commit

Permalink
Add convert gif boolean argument to .ToLower so it plays nice with th…
Browse files Browse the repository at this point in the history
…e API
  • Loading branch information
TazmamzaT committed Sep 1, 2021
1 parent 7e7cef6 commit b05a8f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KSoftNet/KSoft/ImagesAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public class ImagesAPI {
/// <param name="gifs">Default: false, if to retrieve gifs instead of images</param>
/// <returns>KSoftRedditPost</returns>
public async Task<KSoftRedditPost> RandomNsfw(bool gifs) {
var queries = new NameValueCollection {{"gifs", gifs.ToString()}};
var queries = new NameValueCollection {{"gifs", gifs.ToString().ToLower()}};

return await _kSoftAPI.ExecuteAsync<KSoftRedditPost>(HttpMethod.Get, "images/random-nsfw", queries);
}
Expand Down

0 comments on commit b05a8f0

Please sign in to comment.