mirror of
https://github.com/reactos/CMake.git
synced 2025-01-10 13:41:20 +00:00
Merge topic 'file-DOWNLOAD-user-agent'
14aff4d
file(DOWNLOAD): Add HTTP User-Agent string
This commit is contained in:
commit
03077c9cbc
@ -2855,6 +2855,9 @@ cmFileCommand::HandleDownloadCommand(std::vector<std::string> const& args)
|
||||
res = ::curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1);
|
||||
check_curl_result(res, "DOWNLOAD cannot set http failure option: ");
|
||||
|
||||
res = ::curl_easy_setopt(curl, CURLOPT_USERAGENT, "curl/" LIBCURL_VERSION);
|
||||
check_curl_result(res, "DOWNLOAD cannot set user agent option: ");
|
||||
|
||||
res = ::curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION,
|
||||
cmWriteToFileCallback);
|
||||
check_curl_result(res, "DOWNLOAD cannot set write function: ");
|
||||
|
Loading…
Reference in New Issue
Block a user