File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments