From 0a65ee8d95f20b1d4a499fc044ddf97a0c28c9b8 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 12 Mar 2009 14:54:00 -0400 Subject: [PATCH] ENH: allow for https submission if ctest is built with a curl that supports it --- Source/CTest/cmCTestSubmitHandler.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/CTest/cmCTestSubmitHandler.cxx b/Source/CTest/cmCTestSubmitHandler.cxx index d5e04341c..8fb87e054 100644 --- a/Source/CTest/cmCTestSubmitHandler.cxx +++ b/Source/CTest/cmCTestSubmitHandler.cxx @@ -1010,14 +1010,15 @@ int cmCTestSubmitHandler::ProcessHandler() return 0; } } - else if ( dropMethod == "http" ) + else if ( dropMethod == "http" || dropMethod == "https" ) { + std::string url = dropMethod; + url += "://"; ofs << "Using drop method: HTTP" << std::endl; cmCTestLog(this->CTest, HANDLER_OUTPUT, " Using HTTP submit method" << std::endl - << " Drop site: http://"); - std::string url = "http://"; - if ( this->CTest->GetCTestConfiguration("DropSiteUser").size() > 0 ) + << " Drop site:" << url); + if ( this->CTest->GetCTestConfiguration("DropSiteUser").size() > 0 ) { url += this->CTest->GetCTestConfiguration("DropSiteUser"); cmCTestLog(this->CTest, HANDLER_OUTPUT,