summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2019-02-01 13:42:04 +0000
committerTillmann Karras <tilkax@gmail.com>2019-02-01 13:44:58 +0000
commit4090c19e007b7c8b384168eb4495042611a93cc8 (patch)
tree4798830016c1227023f566c0c1e4e06eb9ce3b11 /Source/Core
parent3ff0e7dbd4071d24d30329e404bf690bb70015e5 (diff)
GeckoCodeConfig: fix Gecko Code downloading
For some reason the server always redirects once to the same location.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/GeckoCodeConfig.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/Core/GeckoCodeConfig.cpp b/Source/Core/Core/GeckoCodeConfig.cpp
index 4e5dfd1642..cd7955e7bc 100644
--- a/Source/Core/Core/GeckoCodeConfig.cpp
+++ b/Source/Core/Core/GeckoCodeConfig.cpp
@@ -30,12 +30,15 @@ std::vector<GeckoCode> DownloadCodes(std::string gameid, bool* succeeded)
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;
// Circumvent high-tech DDOS protection
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);
*succeeded = response.has_value();
if (!response)