summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-10-12 23:01:53 (GMT)
committerBrad King <brad.king@kitware.com>2023-10-12 23:01:53 (GMT)
commit244bb7b6bcf06db60d592dff565c03054065706c (patch)
tree082c246e3021493fc6f2fb9664469f5f276aa47d
parent091005fa657cd64a78656ff874032effdf433776 (diff)
parentce661c43996211f146096186ac9bec9733f498c0 (diff)
downloadCMake-244bb7b6bcf06db60d592dff565c03054065706c.zip
CMake-244bb7b6bcf06db60d592dff565c03054065706c.tar.gz
CMake-244bb7b6bcf06db60d592dff565c03054065706c.tar.bz2
Merge branch 'backport-ctest_submit-follow-redirects' into release-3.26
Merge-request: !8873
-rw-r--r--Source/CTest/cmCTestSubmitHandler.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestSubmitHandler.cxx b/Source/CTest/cmCTestSubmitHandler.cxx
index 9161515..6ecf36f 100644
--- a/Source/CTest/cmCTestSubmitHandler.cxx
+++ b/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);