diff options
author | Brad King <brad.king@kitware.com> | 2023-10-12 23:01:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-10-12 23:01:53 (GMT) |
commit | 244bb7b6bcf06db60d592dff565c03054065706c (patch) | |
tree | 082c246e3021493fc6f2fb9664469f5f276aa47d | |
parent | 091005fa657cd64a78656ff874032effdf433776 (diff) | |
parent | ce661c43996211f146096186ac9bec9733f498c0 (diff) | |
download | CMake-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.cxx | 3 |
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); |