From 503baf70131179466ac0155bb0c66230f60f4e74 Mon Sep 17 00:00:00 2001 From: Pork Chop Date: Sat, 1 Jul 2023 15:25:57 +1000 Subject: [PATCH] Curl library expects C style strings for params --- indra/llcorehttp/_httpoprequest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/llcorehttp/_httpoprequest.cpp b/indra/llcorehttp/_httpoprequest.cpp index dc5f6fbcf5..c70d2a44d7 100644 --- a/indra/llcorehttp/_httpoprequest.cpp +++ b/indra/llcorehttp/_httpoprequest.cpp @@ -527,7 +527,7 @@ HttpStatus HttpOpRequest::prepareRequest(HttpService * service) check_curl_easy_setopt(mCurlHandle, CURLOPT_SEEKDATA, getHandle()); check_curl_easy_setopt(mCurlHandle, CURLOPT_COOKIEFILE, ""); - check_curl_easy_setopt(mCurlHandle, CURLOPT_USERAGENT, APP_NAME); // Clownflare changes + check_curl_easy_setopt(mCurlHandle, CURLOPT_USERAGENT, APP_NAME.c_str()); // Clownflare changes if (gpolicy.mSslCtxCallback) {