From 9362fd978985b4e676834bbd517a2db15d068266 Mon Sep 17 00:00:00 2001 From: unresolvedsymbol <48220091+unresolvedsymbol@users.noreply.github.com> Date: Mon, 5 Oct 2020 15:27:02 -0500 Subject: [PATCH] Use RiiConnect24 geckocodes archive --- source/menu/menu_cheat.cpp | 3 +-- source/network/https.c | 6 +----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/source/menu/menu_cheat.cpp b/source/menu/menu_cheat.cpp index 5d9d9339..beb45b01 100644 --- a/source/menu/menu_cheat.cpp +++ b/source/menu/menu_cheat.cpp @@ -4,8 +4,7 @@ #include "lockMutex.hpp" #include "network/https.h" -//#define GECKOURL "http://geckocodes.org/codes/%c/%s.txt" -#define GECKOURL "https://www.geckocodes.org/txt.php?txt=%s" +#define GECKOURL "https://codes.rc24.xyz/txt.php?txt=%s" #define CHEATSPERPAGE 4 u8 m_cheatSettingsPage = 0; diff --git a/source/network/https.c b/source/network/https.c index f5d146ba..e07c1bb7 100644 --- a/source/network/https.c +++ b/source/network/https.c @@ -471,19 +471,15 @@ void downloadfile(const char *url, struct download *buffer) } // Send our request char request[2300]; - char isgecko[36] = "Cookie: challenge=BitMitigate.com\r\n"; int ret, len; - if (strncmp(host, "www.geckocodes.org", 18) != 0) - memset(isgecko, 0, sizeof(isgecko)); // Not geckocodes, so don't set a cookie len = snprintf(request, sizeof(request), "GET %s HTTP/1.1\r\n" "Host: %s\r\n" "User-Agent: WiiFlow-Lite\r\n" "Connection: close\r\n" - "%s" "Pragma: no-cache\r\n" "Cache-Control: no-cache\r\n\r\n", - path, host, isgecko); + path, host); if ((ret = https_write(&httpinfo, request, len, false)) != len) { #ifdef DEBUG_NETWORK