Skip to content

Commit e102d68

Browse files
committed
fix header
1 parent 539d3ed commit e102d68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/arg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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("://");

0 commit comments

Comments
 (0)