This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  ec087883b37b1b5d9ef577776bc509d407e97261 (commit)
       via  14aff4daf45a3cf0af59de60a464af9abe6a013c (commit)
      from  2d592ca96317014e1666692a93b0573e3ebf2d1d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ec087883b37b1b5d9ef577776bc509d407e97261
commit ec087883b37b1b5d9ef577776bc509d407e97261
Merge: 2d592ca 14aff4d
Author:     Brad King <[email protected]>
AuthorDate: Tue Sep 18 14:56:22 2012 -0400
Commit:     CMake Topic Stage <[email protected]>
CommitDate: Tue Sep 18 14:56:22 2012 -0400

    Merge topic 'file-DOWNLOAD-user-agent' into next
    
    14aff4d file(DOWNLOAD): Add HTTP User-Agent string


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=14aff4daf45a3cf0af59de60a464af9abe6a013c
commit 14aff4daf45a3cf0af59de60a464af9abe6a013c
Author:     Brad King <[email protected]>
AuthorDate: Tue Sep 18 14:53:07 2012 -0400
Commit:     Brad King <[email protected]>
CommitDate: Tue Sep 18 14:53:07 2012 -0400

    file(DOWNLOAD): Add HTTP User-Agent string
    
    Some servers require a User-Agent string.  The curl command-line tool
    just sends "curl/$curlver", so do the same.
    
    Suggested-by: Fredrik Ehnbom <[email protected]>

diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index bb12980..4ac58a4 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -2857,6 +2857,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: ");

-----------------------------------------------------------------------

Summary of changes:
 Source/cmFileCommand.cxx |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
CMake
_______________________________________________
Cmake-commits mailing list
[email protected]
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-commits

Reply via email to