mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-19 15:51:54 +00:00
update reasoning
This commit is contained in:
1 parent
c58ccc1643
commit
859183a849
1 file changed
+6
-4
@@ -56,8 +56,9 @@ internal static class HttpPatches
|
|||||||
{
|
{
|
||||||
// new Uri() is necessary because uri property got stripped.
|
// new Uri() is necessary because uri property got stripped.
|
||||||
var path = new Uri(__instance.url).AbsolutePath;
|
var path = new Uri(__instance.url).AbsolutePath;
|
||||||
// Innersloth changed /api/games to /api/games/filtered
|
// Public lobby menu uses /api/games/filtered, code requests use /api/games/code,
|
||||||
// We may want to keep support for /api/games though.
|
// creating a game uses /api/games.
|
||||||
|
// So we need to match everything that contains /api/games
|
||||||
if (path.Contains("/api/games"))
|
if (path.Contains("/api/games"))
|
||||||
{
|
{
|
||||||
Debug($"{__instance.method} {path}");
|
Debug($"{__instance.method} {path}");
|
||||||
@@ -69,8 +70,9 @@ internal static class HttpPatches
|
|||||||
{
|
{
|
||||||
// new Uri() is necessary because uri property got stripped.
|
// new Uri() is necessary because uri property got stripped.
|
||||||
var path = new Uri(__instance.url).AbsolutePath;
|
var path = new Uri(__instance.url).AbsolutePath;
|
||||||
// Innersloth changed /api/games to /api/games/filtered
|
// Public lobby menu uses /api/games/filtered, code requests use /api/games/code,
|
||||||
// We may want to keep support for /api/games though.
|
// creating a game uses /api/games.
|
||||||
|
// So we need to match everything that contains /api/games
|
||||||
if (path.Contains("/api/games"))
|
if (path.Contains("/api/games"))
|
||||||
{
|
{
|
||||||
__result.add_completed((Action<AsyncOperation>) (_ =>
|
__result.add_completed((Action<AsyncOperation>) (_ =>
|
||||||
|
|||||||
Reference in new issue
Block a user