Merge pull request #2 from Beat-YT/patch-2

Events not fully intercepted
This commit is contained in:
mc 2024-02-14 10:49:24 +01:00 committed by GitHub
commit 49bf0a8c35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -148,7 +148,7 @@ namespace Partypacker.Net
oSession.utilCreateResponseAndBypassServer();
oSession.responseCode = 204;
return;
} else if (oSession.PathAndQuery.Contains("/api/v2/games/FNFestival/leaderboards/")) {
} else if (oSession.PathAndQuery.StartsWith("/api/v2/games/FNFestival/leaderboards/") || oSession.PathAndQuery.StartsWith("/api/v1/leaderboards/FNFestival/")) {
oSession.utilCreateResponseAndBypassServer();
oSession.responseCode = 404;
return;