Browse Source

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

Merge-request: !8873
Brad King 2 years ago
parent
commit
244bb7b6bc
1 changed files with 3 additions and 0 deletions
  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);