mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-22 15:16:12 +00:00
Merge with develop
--HG-- branch : compatibility-develop
This commit is contained in:
commit
bb3b7e8277
1 changed files with 6 additions and 2 deletions
|
@ -376,7 +376,9 @@ namespace NLGUI
|
||||||
std::string userAgent = options.appName + "/" + options.appVersion;
|
std::string userAgent = options.appName + "/" + options.appVersion;
|
||||||
curl_easy_setopt(curl, CURLOPT_USERAGENT, userAgent.c_str());
|
curl_easy_setopt(curl, CURLOPT_USERAGENT, userAgent.c_str());
|
||||||
|
|
||||||
sendCookies(curl, _DocumentDomain, _TrustedDomain);
|
CUrlParser uri(download.url);
|
||||||
|
if (!uri.host.empty())
|
||||||
|
sendCookies(curl, uri.host, isTrustedDomain(uri.host));
|
||||||
|
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, fp);
|
curl_easy_setopt(curl, CURLOPT_WRITEDATA, fp);
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, fwrite);
|
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, fwrite);
|
||||||
|
@ -638,7 +640,9 @@ namespace NLGUI
|
||||||
curl_easy_getinfo(it->data->Request, CURLINFO_RESPONSE_CODE, &r);
|
curl_easy_getinfo(it->data->Request, CURLINFO_RESPONSE_CODE, &r);
|
||||||
fclose(it->fp);
|
fclose(it->fp);
|
||||||
|
|
||||||
receiveCookies(it->data->Request, _DocumentDomain, _TrustedDomain);
|
CUrlParser uri(it->url);
|
||||||
|
if (!uri.host.empty())
|
||||||
|
receiveCookies(it->data->Request, uri.host, isTrustedDomain(uri.host));
|
||||||
#ifdef LOG_DL
|
#ifdef LOG_DL
|
||||||
nlwarning("(%s) transfer '%p' completed with status %d, http %d, url (len %d) '%s'", _Id.c_str(), it->data->Request, res, r, it->url.size(), it->url.c_str());
|
nlwarning("(%s) transfer '%p' completed with status %d, http %d, url (len %d) '%s'", _Id.c_str(), it->data->Request, res, r, it->url.size(), it->url.c_str());
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue