瀏覽代碼

Merge branch 'backport-ctest_submit-follow-redirects' into release-3.26

Merge-request: !8873
Brad King 2 年之前
父節點
當前提交
244bb7b6bc
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Source/CTest/cmCTestSubmitHandler.cxx

+ 3 - 0
Source/CTest/cmCTestSubmitHandler.cxx

@@ -308,6 +308,9 @@ bool cmCTestSubmitHandler::SubmitUsingHTTP(
       // specify target
       ::curl_easy_setopt(curl, CURLOPT_URL, upload_as.c_str());
 
+      // follow redirects
+      ::curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
+
       // CURLAUTH_BASIC is default, and here we allow additional methods,
       // including more secure ones
       ::curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY);