Fixed bug where the language parameter was not passed correctly.

This commit is contained in:
mmuffins 2018-05-27 22:43:53 +02:00
parent cc650d402b
commit 809bff4282
4 changed files with 4 additions and 4 deletions

View File

@ -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; }

View File

@ -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; }

View File

@ -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; }

View File

@ -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; }