Skip to content

Commit 13d5308

Browse files
committed
GraphAPIClient disable cookie container for HttpClient
1 parent 0f029ed commit 13d5308

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

MultiplayerCore/MultiplayerCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<OutputType>Library</OutputType>
55
<AppDesignerFolder>Properties</AppDesignerFolder>
66
<AssemblyName>MultiplayerCore</AssemblyName>
7-
<AssemblyVersion>1.6.1</AssemblyVersion>
7+
<AssemblyVersion>1.6.2</AssemblyVersion>
88
<TargetFramework>net472</TargetFramework>
99
<DebugSymbols>true</DebugSymbols>
1010
<DebugType>portable</DebugType>

MultiplayerCore/Patches/GraphAPIClientPatch.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ namespace MultiplayerCore.Patches
1414
[HarmonyPatch]
1515
internal class GraphAPIClientPatch
1616
{
17-
private static readonly HttpClient _client = new();
17+
18+
private static readonly HttpClientHandler _handler = new HttpClientHandler()
19+
{
20+
UseCookies = false,
21+
};
22+
23+
private static readonly HttpClient _client = new(_handler);
1824

1925
// TODO: If this ever breaks, just patch the GraphAPIClient ctor and replace HttpClient _client with a custom HttpClient that has a logging handler
2026

MultiplayerCore/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"id": "MultiplayerCore",
44
"name": "MultiplayerCore",
55
"author": "Goobwabber",
6-
"version": "1.6.1",
6+
"version": "1.6.2",
77
"description": "Adds custom songs to Beat Saber Multiplayer.",
88
"gameVersion": "1.40.0",
99
"dependsOn": {

0 commit comments

Comments
 (0)