Merge pull request #7008 from spycrab/ddos_sux

Fix "Download Codes" hitting DDOS protection
This commit is contained in:
Léo Lam authored and GitHub committed 2018-05-29 14:42:24 +02:00
commit 00d91db2ec
3 files changed
+17

No files matched your search

+4
View File
@@ -32,6 +32,10 @@ std::vector<GeckoCode> DownloadCodes(std::string gameid, bool* succeeded)
std::string endpoint{"http://geckocodes.org/txt.php?txt=" + gameid};
Common::HttpRequest http;
// Circumvent high-tech DDOS protection
http.SetCookies("challenge=BitMitigate.com;");
const Common::HttpRequest::Response response = http.Get(endpoint);
*succeeded = response.has_value();
if (!response)