Fixed bug where the language parameter was not passed correctly.
This commit is contained in:
parent
cc650d402b
commit
809bff4282
@ -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; }
|
||||
|
@ -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; }
|
||||
|
@ -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; }
|
||||
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user