mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 06:08:50 +00:00
GeckoCodeConfig: fix Gecko Code downloading
For some reason the server always redirects once to the same location.
This commit is contained in:
parent
3ff0e7dbd4
commit
4090c19e00
1 changed files with 4 additions and 1 deletions
|
@ -30,12 +30,15 @@ std::vector<GeckoCode> DownloadCodes(std::string gameid, bool* succeeded)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string endpoint{"https://geckocodes.org/txt.php?txt=" + gameid};
|
std::string endpoint{"https://www.geckocodes.org/txt.php?txt=" + gameid};
|
||||||
Common::HttpRequest http;
|
Common::HttpRequest http;
|
||||||
|
|
||||||
// Circumvent high-tech DDOS protection
|
// Circumvent high-tech DDOS protection
|
||||||
http.SetCookies("challenge=BitMitigate.com;");
|
http.SetCookies("challenge=BitMitigate.com;");
|
||||||
|
|
||||||
|
// The server always redirects once to the same location.
|
||||||
|
http.FollowRedirects(1);
|
||||||
|
|
||||||
const Common::HttpRequest::Response response = http.Get(endpoint);
|
const Common::HttpRequest::Response response = http.Get(endpoint);
|
||||||
*succeeded = response.has_value();
|
*succeeded = response.has_value();
|
||||||
if (!response)
|
if (!response)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue