Skip to content

Commit 95fad02

Browse files
fix the flaky macos CI
1 parent 554ff87 commit 95fad02

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

cmake/LiveKitSDK.cmake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function(_lk_resolve_latest_version out_version repo download_dir github_token)
8888
# Use Authorization only if token is non-empty
8989
if(NOT "${github_token}" STREQUAL "")
9090
# "token" is broadly compatible
91-
list(APPEND _headers "Authorization: token ${github_token}")
91+
list(APPEND _headers "Authorization: Bearer ${github_token}")
9292
else()
9393
message(STATUS "LiveKitSDK: no GITHUB_TOKEN provided; GitHub API may rate-limit.")
9494
endif()
@@ -99,9 +99,8 @@ function(_lk_resolve_latest_version out_version repo download_dir github_token)
9999
STATUS _st
100100
LOG _log
101101
)
102-
list(APPEND _dl_args HTTPHEADER)
103102
foreach(_h IN LISTS _headers)
104-
list(APPEND _dl_args "${_h}")
103+
list(APPEND _dl_args HTTPHEADER "${_h}")
105104
endforeach()
106105
file(DOWNLOAD "${_api}" "${_json}" ${_dl_args})
107106

0 commit comments

Comments
 (0)