Explorar o código

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

Merge-request: !8873
Brad King %!s(int64=2) %!d(string=hai) anos
pai
achega
244bb7b6bc
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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);