Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
chr233 committed Jun 13, 2023
1 parent c26daea commit 9b9d964
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions ASFEnhance/Profile/WebRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,13 @@ internal static async Task<string> ApplyCustomAvatar(Bot bot, string imgUrl)
return Langs.DownloadImageFailed;
}

var cc = bot.ArchiWebHandler.WebBrowser.CookieContainer.GetCookies(SteamCommunityURL);
var session = cc["sessionid"];
var session = FetchSessionId(bot);

var avatar = new ByteArrayContent(bytes.ToArray());
avatar.Headers.ContentType = new MediaTypeHeaderValue("image/png");
var type = new StringContent("player_avatar_image", Encoding.UTF8);
var sId = new StringContent(bot.SteamID.ToString(), Encoding.UTF8);
var sessionid = new StringContent(session?.Value ?? "", Encoding.UTF8);
var sessionid = new StringContent(session ?? "", Encoding.UTF8);
var doSub = new StringContent("1", Encoding.UTF8);
var json = new StringContent("1", Encoding.UTF8);

Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>1.8.2.0</Version>
<Version>1.8.3.0</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit 9b9d964

Please sign in to comment.