From 809bff4282fe84308ce7e96ffb2d886016d73f52 Mon Sep 17 00:00:00 2001 From: mmuffins Date: Sun, 27 May 2018 22:43:53 +0200 Subject: [PATCH] Fixed bug where the language parameter was not passed correctly. --- SteamStorefrontAPI/Endpoints/AppDetails.cs | 2 +- SteamStorefrontAPI/Endpoints/Featured.cs | 2 +- SteamStorefrontAPI/Endpoints/FeaturedCategories.cs | 2 +- SteamStorefrontAPI/Endpoints/PackageDetails.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SteamStorefrontAPI/Endpoints/AppDetails.cs b/SteamStorefrontAPI/Endpoints/AppDetails.cs index 881c5a4..fb3bbab 100644 --- a/SteamStorefrontAPI/Endpoints/AppDetails.cs +++ b/SteamStorefrontAPI/Endpoints/AppDetails.cs @@ -40,7 +40,7 @@ namespace SteamStorefrontAPI { string steamUri = $"{steamBaseUri}?appids={AppId}"; steamUri = string.IsNullOrWhiteSpace(CountryCode) ? steamUri : $"{steamUri}&cc={CountryCode}"; - steamUri = string.IsNullOrWhiteSpace(Language) ? steamUri : $"{steamUri}&l={Language}"; + steamUri = string.IsNullOrWhiteSpace(Language) ? steamUri : $"{steamUri}&l={Language.ToLower()}"; var response = await client.GetAsync(steamUri); if (!response.IsSuccessStatusCode) { return null; } diff --git a/SteamStorefrontAPI/Endpoints/Featured.cs b/SteamStorefrontAPI/Endpoints/Featured.cs index 352bbe9..8d355bf 100644 --- a/SteamStorefrontAPI/Endpoints/Featured.cs +++ b/SteamStorefrontAPI/Endpoints/Featured.cs @@ -39,7 +39,7 @@ namespace SteamStorefrontAPI { string steamUri = steamBaseUri; steamUri = string.IsNullOrWhiteSpace(CountryCode) ? steamUri : $"{steamUri}&cc={CountryCode}"; - steamUri = string.IsNullOrWhiteSpace(Language) ? steamUri : $"{steamUri}&l={Language}"; + steamUri = string.IsNullOrWhiteSpace(Language) ? steamUri : $"{steamUri}&l={Language.ToLower()}"; var response = await client.GetAsync(steamUri); if (!response.IsSuccessStatusCode) { return null; } diff --git a/SteamStorefrontAPI/Endpoints/FeaturedCategories.cs b/SteamStorefrontAPI/Endpoints/FeaturedCategories.cs index 5aa1ed8..c9ae61f 100644 --- a/SteamStorefrontAPI/Endpoints/FeaturedCategories.cs +++ b/SteamStorefrontAPI/Endpoints/FeaturedCategories.cs @@ -39,7 +39,7 @@ namespace SteamStorefrontAPI { string steamUri = steamBaseUri; steamUri = string.IsNullOrWhiteSpace(CountryCode) ? steamUri : $"{steamUri}&cc={CountryCode}"; - steamUri = string.IsNullOrWhiteSpace(Language) ? steamUri : $"{steamUri}&l={Language}"; + steamUri = string.IsNullOrWhiteSpace(Language) ? steamUri : $"{steamUri}&l={Language.ToLower()}"; var response = await client.GetAsync(steamUri); if (!response.IsSuccessStatusCode) { return null; } diff --git a/SteamStorefrontAPI/Endpoints/PackageDetails.cs b/SteamStorefrontAPI/Endpoints/PackageDetails.cs index 37a3db5..16cd08b 100644 --- a/SteamStorefrontAPI/Endpoints/PackageDetails.cs +++ b/SteamStorefrontAPI/Endpoints/PackageDetails.cs @@ -42,7 +42,7 @@ namespace SteamStorefrontAPI { string steamUri = $"{steamBaseUri}?packageids={PackageId}"; steamUri = string.IsNullOrWhiteSpace(CountryCode) ? steamUri : $"{steamUri}&cc={CountryCode}"; - steamUri = string.IsNullOrWhiteSpace(Language) ? steamUri : $"{steamUri}&l={Language}"; + steamUri = string.IsNullOrWhiteSpace(Language) ? steamUri : $"{steamUri}&l={Language.ToLower()}"; var response = await client.GetAsync(steamUri); if (!response.IsSuccessStatusCode) { return null; }