Skip to content

Commit

Permalink
Fix GetPriceHistory not working on non-generic ASF
Browse files Browse the repository at this point in the history
  • Loading branch information
Citrinate committed Feb 2, 2024
1 parent c2d7d41 commit 22abac8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions BoosterManager/WebRequest.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using ArchiSteamFarm.Steam;
using ArchiSteamFarm.Steam.Data;
Expand Down Expand Up @@ -128,7 +127,7 @@ internal static async Task<SteamDataResponse> SendSteamData<T>(Uri request, Bot
}

internal static async Task<JToken?> GetPriceHistory(Bot bot, uint appID, string hashName) {
Uri request = new(ArchiWebHandler.SteamCommunityURL, String.Format("/market/pricehistory/?appid={0}&market_hash_name={1}", appID, WebUtility.UrlEncode(hashName)));
Uri request = new(ArchiWebHandler.SteamCommunityURL, String.Format("/market/pricehistory/?appid={0}&market_hash_name={1}", appID, Uri.EscapeDataString(hashName)));
ObjectResponse<JToken>? priceHistoryResponse = await bot.ArchiWebHandler.UrlGetToJsonObjectWithSession<JToken>(request).ConfigureAwait(false);
return priceHistoryResponse?.Content;
}
Expand Down

0 comments on commit 22abac8

Please sign in to comment.