浏览代码

ctest: Drop unnecessary use of deprecated CURLOPT_PUT

All usage sites are already preceded by use of its replacement,
CURLOPT_UPLOAD.
Brad King 2 年之前
父节点
当前提交
1cd38de47f
共有 2 个文件被更改,包括 0 次插入4 次删除
  1. 0 2
      Source/CTest/cmCTestCurl.cxx
  2. 0 2
      Source/CTest/cmCTestSubmitHandler.cxx

+ 0 - 2
Source/CTest/cmCTestCurl.cxx

@@ -118,8 +118,6 @@ bool cmCTestCurl::UploadFile(std::string const& local_file,
   /* enable uploading */
   curl_easy_setopt(this->Curl, CURLOPT_UPLOAD, 1);
 
-  /* HTTP PUT please */
-  ::curl_easy_setopt(this->Curl, CURLOPT_PUT, 1);
   ::curl_easy_setopt(this->Curl, CURLOPT_VERBOSE, 1);
 
   FILE* ftpfile = cmsys::SystemTools::Fopen(local_file, "rb");

+ 0 - 2
Source/CTest/cmCTestSubmitHandler.cxx

@@ -223,8 +223,6 @@ bool cmCTestSubmitHandler::SubmitUsingHTTP(
                            submitInactivityTimeout);
       }
 
-      /* HTTP PUT please */
-      ::curl_easy_setopt(curl, CURLOPT_PUT, 1);
       ::curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
 
       ::curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);