mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Use secure.gog.com to get "buk" value for login form
This commit is contained in:
parent
e491c06780
commit
78fe112e5e
@ -1540,7 +1540,7 @@ int Downloader::HTTP_Login(const std::string& email, const std::string& password
|
||||
std::string buk;
|
||||
|
||||
// Get "buk" for login form
|
||||
std::string json = this->getResponse("http://www.gog.com/user/ajax/?a=get");
|
||||
std::string json = this->getResponse("https://secure.gog.com/user/ajax/?a=get");
|
||||
|
||||
Json::Value root;
|
||||
Json::Reader *jsonparser = new Json::Reader;
|
||||
@ -1582,7 +1582,7 @@ int Downloader::HTTP_Login(const std::string& email, const std::string& password
|
||||
|
||||
curl_easy_setopt(curlhandle, CURLOPT_HTTPGET, 1);
|
||||
curl_easy_setopt(curlhandle, CURLOPT_MAXREDIRS, -1);
|
||||
json = this->getResponse("http://www.gog.com/user/ajax/?a=get");
|
||||
json = this->getResponse("https://secure.gog.com/user/ajax/?a=get");
|
||||
|
||||
parsingSuccessful = jsonparser->parse(json, root);
|
||||
if (!parsingSuccessful)
|
||||
|
Loading…
Reference in New Issue
Block a user