Skip to content

Commit

Permalink
fix user-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5ea000000 committed Aug 2, 2021
1 parent f488752 commit 946cc23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions LOLAutoBargain/AutoBargain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ public static async Task Run()

client.DefaultRequestHeaders.Accept.Clear();
client.DefaultRequestHeaders.Add("token", landingToken);
client.DefaultRequestHeaders.Add("User-Agent", "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) LeagueOfLegendsClient/11.15.388.2387 (CEF 74) Safari/537.36");

var configResponse = client.GetAsync("https://bargain.lol.garena.vn/api/config");
var cfgmsg = await configResponse;
Console.WriteLine(await cfgmsg.Content.ReadAsStringAsync());
Console.WriteLine("---------------------------------------------------------");

var profileResponse = client.GetAsync("https://bargain.lol.garena.vn/api/profile");
var msg = await profileResponse;
Expand Down

0 comments on commit 946cc23

Please sign in to comment.