File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -233,8 +233,8 @@ static bool common_download_file_single(const std::string & url, const std::stri
233233 if (!bearer_token.empty ()) {
234234 std::string auth_header = " Authorization: Bearer " + bearer_token;
235235 http_headers.ptr = curl_slist_append (http_headers.ptr , auth_header.c_str ());
236- curl_easy_setopt (curl.get (), CURLOPT_HTTPHEADER, http_headers.ptr );
237236 }
237+ curl_easy_setopt (curl.get (), CURLOPT_HTTPHEADER, http_headers.ptr );
238238
239239#if defined(_WIN32)
240240 // CURLSSLOPT_NATIVE_CA tells libcurl to use standard certificate store of
@@ -375,7 +375,7 @@ static bool common_download_file_single(const std::string & url, const std::stri
375375
376376 // display download progress
377377 curl_easy_setopt (curl.get (), CURLOPT_NOPROGRESS, 0L );
378-
378+
379379 // helper function to hide password in URL
380380 auto llama_download_hide_password_in_url = [](const std::string & url) -> std::string {
381381 std::size_t protocol_pos = url.find (" ://" );
You can’t perform that action at this time.
0 commit comments