mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
Rework WebApi.cs to use HttpClient (#1584)
* Rewrk webapi.cs to use HttpClient * only run code signing when secrets are configured * Workaround to check if secret is present or not * apply it to all azure steps... * dont replace cookie container, reuse managed object * Fix adding MD5 --------- Co-authored-by: Natsumi <cmcooper123@hotmail.com>
This commit is contained in:
@@ -57,10 +57,10 @@ internal static class ImageCache
|
||||
|
||||
var cookieString = string.Empty;
|
||||
if (WebApi.Instance != null &&
|
||||
WebApi.Instance._cookieContainer != null &&
|
||||
WebApi.Instance.CookieContainer != null &&
|
||||
uri.Host == "api.vrchat.cloud")
|
||||
{
|
||||
CookieCollection cookies = WebApi.Instance._cookieContainer.GetCookies(new Uri("https://api.vrchat.cloud"));
|
||||
CookieCollection cookies = WebApi.Instance.CookieContainer.GetCookies(new Uri("https://api.vrchat.cloud"));
|
||||
foreach (Cookie cookie in cookies)
|
||||
cookieString += $"{cookie.Name}={cookie.Value};";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user