summaryrefslogtreecommitdiff
path: root/indra/llcorehttp/httpcommon.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2025-07-03 21:21:58 +0800
committerErik Kundiman <erik@megapahit.org>2025-07-03 21:21:58 +0800
commitd32b1c090f396824c5ec2ffbc40b174a55bdbe0b (patch)
treebdf6f1753b8ec7b37aa0831e6ff0beeffcefd869 /indra/llcorehttp/httpcommon.cpp
parentb024b356c75528b4d2688016d49a11e1270fb48d (diff)
parent2283c5c35103dd99b35ca43a09bf8e11e6cd7957 (diff)
Merge branch 'main' into gltf_mesh_import
Diffstat (limited to 'indra/llcorehttp/httpcommon.cpp')
-rw-r--r--indra/llcorehttp/httpcommon.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llcorehttp/httpcommon.cpp b/indra/llcorehttp/httpcommon.cpp
index 315ff15ebb..2b09653d8e 100644
--- a/indra/llcorehttp/httpcommon.cpp
+++ b/indra/llcorehttp/httpcommon.cpp
@@ -289,8 +289,10 @@ CURL *getCurlTemplateHandle()
check_curl_code(result, CURLOPT_NOSIGNAL);
result = curl_easy_setopt(curlpTemplateHandle, CURLOPT_NOPROGRESS, 1);
check_curl_code(result, CURLOPT_NOPROGRESS);
+#if LIBCURL_VERSION_MAJOR < 8
result = curl_easy_setopt(curlpTemplateHandle, CURLOPT_ENCODING, "");
check_curl_code(result, CURLOPT_ENCODING);
+#endif
result = curl_easy_setopt(curlpTemplateHandle, CURLOPT_AUTOREFERER, 1);
check_curl_code(result, CURLOPT_AUTOREFERER);
result = curl_easy_setopt(curlpTemplateHandle, CURLOPT_FOLLOWLOCATION, 1);